diff --git a/ox/web/criterion.py b/ox/web/criterion.py index 2e81ce1..14074e6 100644 --- a/ox/web/criterion.py +++ b/ox/web/criterion.py @@ -8,7 +8,7 @@ from ox.cache import read_url from ox.html import strip_tags, decode_html from ox.text import find_re -import imdb +from . import imdb def get_id(url): return url.split("/")[-1] diff --git a/ox/web/imdb.py b/ox/web/imdb.py index fa9925e..c46a117 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -803,8 +803,10 @@ def get_episodes(imdbId, season=None): def max_votes(): url = 'http://www.imdb.com/search/title?num_votes=500000,&sort=num_votes,desc' data = cache.read_url(url) - votes = max([int(v.replace(',', '')) - for v in re.compile('([\d,]+)').findall(data)]) + votes = max([ + int(v.replace(',', '')) + for v in re.compile('