python3 fixes

This commit is contained in:
j 2016-09-07 15:06:52 +02:00
commit 3e9a7c2e5f
2 changed files with 3 additions and 3 deletions

View file

@ -802,7 +802,7 @@ 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)
data = cache.read_url(url).decode('utf-8', 'ignore')
votes = max([
int(v.replace(',', ''))
for v in re.compile('<span name="nv" data-value="(\d+)"').findall(data)