fix year parsing, ref #3168

This commit is contained in:
j 2018-09-25 10:24:27 +02:00
parent a43de715ed
commit 2ad0c0b499

View file

@ -285,7 +285,10 @@ class Imdb(SiteParser):
'writer': reference_section('writers'), 'writer': reference_section('writers'),
'year': { 'year': {
'page': 'reference', 'page': 'reference',
're': '<a href="/search/title\?year=\d+&ref_=tt_rv".*?itemprop=\'url\'>(\d+)</a>', 're': [
'<span class="titlereference-title-year">(.*?)</span>',
'<a.*?>(\d+)[- ]*<',
],
'type': 'int' 'type': 'int'
}, },
'credits': { 'credits': {
@ -444,7 +447,7 @@ class Imdb(SiteParser):
if 'year' in series: if 'year' in series:
self['seriesYear'] = series['year'] self['seriesYear'] = series['year']
if not 'year' in self: if 'year' not in self:
self['year'] = series['year'] self['year'] = series['year']
if 'year' in self: if 'year' in self: