From 2026b64faf121047e763f22276d1665d31007024 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 28 Jun 2019 12:21:32 +0200 Subject: [PATCH] always utf-8, fixes #3209 --- ox/web/piratecinema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/web/piratecinema.py b/ox/web/piratecinema.py index 9ae3c24..4ed946b 100644 --- a/ox/web/piratecinema.py +++ b/ox/web/piratecinema.py @@ -7,7 +7,7 @@ from ox.net import read_url def get_poster_url(id): 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) for result in results: if result[1] == id: