python3 fixes
This commit is contained in:
parent
a7fe2e2f96
commit
3e9a7c2e5f
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue