From 9588e0d5e22e35515606a0950cda3efdba87d13a Mon Sep 17 00:00:00 2001 From: jellysheep Date: Tue, 4 Aug 2015 18:25:24 +0200 Subject: [ZDF] Encode file name / title The title used as file name is encoded in Latin-1. This commit enables pyload to download those files and display their names in the queue correctly. --- module/plugins/hoster/ZDF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins') diff --git a/module/plugins/hoster/ZDF.py b/module/plugins/hoster/ZDF.py index 008a6241d..b00077cce 100644 --- a/module/plugins/hoster/ZDF.py +++ b/module/plugins/hoster/ZDF.py @@ -51,7 +51,7 @@ class ZDF(Hoster): video = xml.find("video") title = video.findtext("information/title") - pyfile.name = title + pyfile.name = title.encode("Latin-1") target_url = sorted((v for v in video.iter("formitaet") if self.video_valid(v)), key=self.video_key)[-1].findtext("url") -- cgit v1.2.3