diff --git a/ox/movie.py b/ox/movie.py index 6b6eae0..a5699d1 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -82,7 +82,7 @@ def parse_movie_path(path): else: episode = None - if episode: + if episode and 'Episode %d'%episode in fileparts: episodeTitle = fileparts.index('Episode %d' % episode) + 1 episodeTitle = fileparts[episodeTitle] if episodeTitle == extension or episodeTitle.startswith('Part'):