GuessIt is a python library that tries to extract as much information as possible from a filename.