diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 6c5ae90..e310c88 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -285,7 +285,10 @@ class Imdb(SiteParser): 'writer': reference_section('writers'), 'year': { 'page': 'reference', - 're': '(\d+)', + 're': [ + '(.*?)', + '(\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: