special case series without creator but a director
This commit is contained in:
parent
fc95c4797b
commit
2057e699bd
1 changed files with 11 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue