work around broken episode titles

This commit is contained in:
j 2011-10-21 12:00:20 +02:00
parent bfe269a349
commit c87a6eddba

View file

@ -82,7 +82,7 @@ def parse_movie_path(path):
else: else:
episode = None episode = None
if episode: if episode and 'Episode %d'%episode in fileparts:
episodeTitle = fileparts.index('Episode %d' % episode) + 1 episodeTitle = fileparts.index('Episode %d' % episode) + 1
episodeTitle = fileparts[episodeTitle] episodeTitle = fileparts[episodeTitle]
if episodeTitle == extension or episodeTitle.startswith('Part'): if episodeTitle == extension or episodeTitle.startswith('Part'):