episode can also be 0

This commit is contained in:
j 2011-11-22 22:30:29 +01:00
parent 0b3aaae981
commit bfb1d468af

View file

@ -99,7 +99,7 @@ def parse_movie_path(path):
if season: if season:
seriesTitle = title seriesTitle = title
title = u'%s (S%02d)' % (seriesTitle, season) title = u'%s (S%02d)' % (seriesTitle, season)
if episode: if isinstance(episode, int):
title = u'%s (S%02dE%02d)' % (seriesTitle, season, episode) title = u'%s (S%02dE%02d)' % (seriesTitle, season, episode)
if episodeTitle: if episodeTitle:
title = u'%s %s' % (title, episodeTitle) title = u'%s %s' % (title, episodeTitle)