directors are creators

This commit is contained in:
j 2011-10-18 14:33:45 +02:00
parent f1fee46126
commit 71abfcc307

View file

@ -353,13 +353,13 @@ class Imdb(SiteParser):
self['episode%s'%key] = self[key.lower()] self['episode%s'%key] = self[key.lower()]
series = Imdb(self['series']) series = Imdb(self['series'])
if not 'creator' in series and 'director' in series:
series['creator'] = series['director']
for key in ['creator', 'year', 'country']: for key in ['creator', 'year', 'country']:
if key in series: if key in series:
self[key] = series[key] self[key] = series[key]
if not 'director' in self and 'director' in series:
self['director'] = series['director']
if 'originalTitle' in self: if 'originalTitle' in self:
del self['originalTitle'] del self['originalTitle']
else: else: