special case series without creator but a director

This commit is contained in:
j 2011-10-18 12:58:03 +02:00
parent fc95c4797b
commit 2057e699bd

View file

@ -102,6 +102,14 @@ class Imdb(SiteParser):
],
'type': 'list'
},
'_director': {
'page': 'combined',
're': [
'<h5>Director:</h5>.*?<div class="info-content">(.*?)</div>',
'<a href="/name/.*?>(.*?)</a>'
],
'type': 'list'
},
'editor': {
'page': 'combined',
're': [
@ -329,6 +337,9 @@ class Imdb(SiteParser):
for key in ('country', 'genre'):
if key in self:
self[key] = filter(lambda x: x.lower() != 'home', self[key])
#0092999
if '_director' in self:
self['creator'] = self.pop('_director')
if 'series' in self:
if 'episodeTitle' in self: