summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 21:50:49 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 21:50:49 +0200
commitece4934cf682094b72c326a8a575dee6a61158b2 (patch)
treeb08102ed48cc8c3f683fa890959918bb50f986de
parentSpare code fixes (diff)
parent[ZDF] Encode file name to ASCII for compatibility (diff)
downloadpyload-ece4934cf682094b72c326a8a575dee6a61158b2.tar.xz
Merge pull request #2052 from jellysheep/patch-4
[ZDF] Encode file name to ASCII for compatibility
-rw-r--r--module/plugins/hoster/ZDF.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/ZDF.py b/module/plugins/hoster/ZDF.py
index 1876ddb15..7db5e920e 100644
--- a/module/plugins/hoster/ZDF.py
+++ b/module/plugins/hoster/ZDF.py
@@ -10,7 +10,7 @@ from module.plugins.internal.Hoster import Hoster
class ZDF(Hoster):
__name__ = "ZDF Mediathek"
__type__ = "hoster"
- __version__ = "0.85"
+ __version__ = "0.86"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?zdf\.de/ZDFmediathek/\D*(\d+)\D*'
@@ -52,7 +52,7 @@ class ZDF(Hoster):
video = xml.find("video")
title = video.findtext("information/title")
- pyfile.name = title.encode("Latin-1")
+ pyfile.name = title.encode('ascii', errors='replace')
target_url = sorted((v for v in video.iter("formitaet") if self.video_valid(v)),
key=self.video_key)[-1].findtext("url")