From c87a6eddba3a43a3b5c94f0fa603b8935ddd82ca Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Oct 2011 12:00:20 +0200 Subject: [PATCH] work around broken episode titles --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'):