use main page for series creator, fixes #3046

This commit is contained in:
j 2017-07-26 13:17:40 +02:00
parent 3e589c454a
commit 8aef76e7cd

View file

@ -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: