diff options
author | jellysheep <max.mail@dameweb.de> | 2015-08-04 18:25:24 +0200 |
---|---|---|
committer | jellysheep <max.mail@dameweb.de> | 2015-08-04 18:25:24 +0200 |
commit | 9588e0d5e22e35515606a0950cda3efdba87d13a (patch) | |
tree | cd42921e3765159a4a35c9e378c335d1de485f12 /module/plugins/hoster/ZDF.py | |
parent | Some fixes (diff) | |
download | pyload-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/ZDF.py')
-rw-r--r-- | module/plugins/hoster/ZDF.py | 2 |
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") |