diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index 84fd762..57d926a 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -176,9 +176,10 @@ class IMDb: html_title = soup('title') if html_title: html_title = str(html_title[0]) - year = re.compile('(\d\d\d\d)').findall(html_title) + html_title = stripTags(html_title) + year = re.compile('\((\d\d\d\d)\)').findall(html_title) if not year: - year = re.compile('(\d\d\d\d/I)').findall(html_title) + year = re.compile('\((\d\d\d\d/I)\)').findall(html_title) if year: year = year[0] else: year = ''