fix year parsing, ref #3168
This commit is contained in:
parent
a43de715ed
commit
2ad0c0b499
1 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue