From bfb1d468afc3bfdd4d36ea1953f53388190f6f23 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Nov 2011 22:30:29 +0100 Subject: [PATCH] episode can also be 0 --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index 61ca3f2..3ca001b 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -99,7 +99,7 @@ def parse_movie_path(path): if season: seriesTitle = title title = u'%s (S%02d)' % (seriesTitle, season) - if episode: + if isinstance(episode, int): title = u'%s (S%02dE%02d)' % (seriesTitle, season, episode) if episodeTitle: title = u'%s %s' % (title, episodeTitle)