summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 21:27:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 21:27:11 +0200
commit52ac62d408dba48ad36744098003e47208c082c2 (patch)
treee882d1b1491423c85f345136fa9e464227e0dc77 /module/plugins/hoster
parentweb if acc settings (diff)
downloadpyload-52ac62d408dba48ad36744098003e47208c082c2.tar.xz
encoding fix try
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/YoutubeCom.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index 6148d72f0..d92d8d128 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -32,9 +32,8 @@ class YoutubeCom(Hoster):
if self.getConf("quality") == "hd" or self.getConf("quality") == "hq":
file_suffix = ".mp4"
- name = re.search(file_name_pattern, html).group(1).replace("/", "") + file_suffix
-
- pyfile.name = name.replace("&amp;", "&").replace("ö", "oe").replace("ä", "ae").replace("ü", "ue")
+ name = (re.search(file_name_pattern, html).group(1).replace("/", "") + file_suffix).decode("utf8")
+ pyfile.name = name #.replace("&amp;", "&").replace("ö", "oe").replace("ä", "ae").replace("ü", "ue")
if self.getConf("quality") == "sd":
quality = "&fmt=6"