use main page for series creator, fixes #3046
This commit is contained in:
parent
3e589c454a
commit
8aef76e7cd
1 changed files with 8 additions and 7 deletions
|
@ -87,10 +87,11 @@ class Imdb(SiteParser):
|
|||
'type': 'list'
|
||||
},
|
||||
'creator': {
|
||||
'page': 'combined',
|
||||
'page': '',
|
||||
're': [
|
||||
'<h5>Creator.?:</h5>.*?<div class="info-content">(.*?)</div>',
|
||||
'<a href="/name/.*?>(.*?)</a>'
|
||||
'<div class="credit_summary_item">.*?<h4.*?>Creator.?:</h4>(.*?)</div>',
|
||||
'<a href="/name/.*?>(.*?)</a>',
|
||||
lambda ll: strip_tags(ll)
|
||||
],
|
||||
'type': 'list'
|
||||
},
|
||||
|
@ -564,7 +565,7 @@ class Imdb(SiteParser):
|
|||
if 'director' in self:
|
||||
self['episodeDirector'] = self['director']
|
||||
|
||||
if not 'creator' in series and 'director' in series:
|
||||
if 'creator' not in series and 'director' in series:
|
||||
series['creator'] = series['director']
|
||||
if len(series['creator']) > 10:
|
||||
series['creator'] = series['director'][:1]
|
||||
|
@ -794,8 +795,8 @@ def get_movie_id(title, director='', year='', timeout=-1):
|
|||
if results:
|
||||
return results[0]
|
||||
|
||||
#print (title, director), ": '',"
|
||||
#print google_query
|
||||
#print((title, director), ": '',")
|
||||
#print(google_query)
|
||||
#results = google.find(google_query, timeout=timeout)
|
||||
results = duckduckgo.find(google_query, timeout=timeout)
|
||||
if results:
|
||||
|
|
Loading…
Reference in a new issue