minor change

This commit is contained in:
j 2012-09-25 13:54:54 +02:00
parent 7c60ddd584
commit c690f811b6

View file

@ -415,11 +415,11 @@ class Imdb(SiteParser):
if 'series' in self: if 'series' in self:
if 'episodeTitle' in self: if 'episodeTitle' in self:
self['seriesTitle'] = self['title'] self['seriesTitle'] = self['title']
self['title'] = "%s (S01) %s" % (self['seriesTitle'], self['episodeTitle']) if 'season' in self and 'episode' in self:
if 'episodeTitle' in self and 'season' in self and 'episode' in self:
self['title'] = "%s (S%02dE%02d) %s" % ( self['title'] = "%s (S%02dE%02d) %s" % (
self['seriesTitle'], self['season'], self['episode'], self['episodeTitle']) self['seriesTitle'], self['season'], self['episode'], self['episodeTitle'])
if 'title' in self: else:
self['title'] = "%s (S01) %s" % (self['seriesTitle'], self['episodeTitle'])
self['title'] = self['title'].strip() self['title'] = self['title'].strip()
if 'director' in self: if 'director' in self:
self['episodeDirector'] = self['director'] self['episodeDirector'] = self['director']