From 66b407a6fae8d6ae33ed6d0783f0c777a5911988 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 17 Aug 2012 15:48:19 +0200 Subject: [PATCH] movie.py: allow for S00 or E00 --- ox/movie.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ox/movie.py b/ox/movie.py index 181721c..96318ac 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -136,7 +136,7 @@ def parse_path(path): data['episode'] = int(match.group(2)[1:3]) if match and match.group(2) else None data['episodeTitle'] = match.group(4)[1:] if match and match.group(4) else None # isEpisode, seriesDirector, seriesDirectorSort, seriesTitle, seriesYear - if data['season'] or data['episode']: + if data['season'] != None or data['episode'] != None: data['isEpisode'] = True data['seriesDirector'] = data['director'] data['director'] = [] @@ -171,8 +171,6 @@ def parse_path(path): data['extension'] = re.sub('^mpeg$', 'mpg', extension.lower()) if extension else None # type data['type'] = parse_type(data['extension']) - if data['type'] == 'subtitle' and not data['language']: - data['language'] = 'en' # path data['path'] = format_path(data) return data