always utf-8, fixes #3209
This commit is contained in:
parent
0728847ffa
commit
2026b64faf
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ from ox.net import read_url
|
||||||
|
|
||||||
def get_poster_url(id):
|
def get_poster_url(id):
|
||||||
url = 'http://piratecinema.org/posters/'
|
url = 'http://piratecinema.org/posters/'
|
||||||
html = read_url(url, unicode=True)
|
html = read_url(url).decode('utf-8')
|
||||||
results = re.compile('src="(.+)" title=".+\((\d{7})\)"').findall(html)
|
results = re.compile('src="(.+)" title=".+\((\d{7})\)"').findall(html)
|
||||||
for result in results:
|
for result in results:
|
||||||
if result[1] == id:
|
if result[1] == id:
|
||||||
|
|
Loading…
Reference in a new issue