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'),
'year': {
'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'
},
'credits': {
@ -444,7 +447,7 @@ class Imdb(SiteParser):
if 'year' in series:
self['seriesYear'] = series['year']
if not 'year' in self:
if 'year' not in self:
self['year'] = series['year']
if 'year' in self: