creator for series entries

This commit is contained in:
j 2011-11-22 12:46:27 +01:00
parent ccab080e3f
commit 6331d586fc

View file

@ -228,6 +228,11 @@ class Imdb(SiteParser):
're': '<h5>TV Series:</h5>.*?<a href="/title/tt(\d{7})', 're': '<h5>TV Series:</h5>.*?<a href="/title/tt(\d{7})',
'type': 'string' 'type': 'string'
}, },
'isSeries': {
'page': 'combined',
're': '<span class="tv-extra">(TV series)</span>',
'type': 'string'
},
'originalTitle': { 'originalTitle': {
'page': 'combined', 'page': 'combined',
're': '<h1>(.*?) <span>', 're': '<h1>(.*?) <span>',
@ -344,10 +349,12 @@ class Imdb(SiteParser):
self[key] = filter(lambda x: x.lower() != 'home', self[key]) self[key] = filter(lambda x: x.lower() != 'home', self[key])
#0092999 #0092999
if '_director' in self: if '_director' in self:
if 'series' in self: if 'series' in self or 'isSeries' in self:
self['creator'] = self.pop('_director') self['creator'] = self.pop('_director')
else: else:
del self['_director'] del self['_director']
if 'isSeries' in self:
del self['isSeries']
if 'series' in self: if 'series' in self:
if 'episodeTitle' in self: if 'episodeTitle' in self: