From bac441158b7b4be114b9add5d98138b5bc58b470 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Nov 2011 22:19:19 +0100 Subject: [PATCH] episode title --- ox/movie.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ox/movie.py b/ox/movie.py index a5699d1..77f6357 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -95,6 +95,11 @@ def parse_movie_path(path): if episodeTitle: title = u'%s %s' % (title, episodeTitle) + if 'Episode' in fileparts: + episodeTitle = fileparts.index('Episode') + 1 + episodeTitle = fileparts[episodeTitle] + if episodeTitle == extension or episodeTitle.startswith('Part'): + episodeTitle = None #part part = findRe(parts[-1], '\.Part (\d+)\.') if part: