summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar jellysheep <max.mail@dameweb.de> 2015-08-04 18:25:24 +0200
committerGravatar jellysheep <max.mail@dameweb.de> 2015-08-04 18:25:24 +0200
commit9588e0d5e22e35515606a0950cda3efdba87d13a (patch)
treecd42921e3765159a4a35c9e378c335d1de485f12 /module/plugins/hoster
parentSome fixes (diff)
downloadpyload-9588e0d5e22e35515606a0950cda3efdba87d13a.tar.xz
[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.
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/ZDF.py2
1 files changed, 1 insertions, 1 deletions
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")