summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YoutubeCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-15 17:35:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-15 17:35:48 +0200
commita0805f27015748638a5fb05fd55b746852c53362 (patch)
tree1f56b476ae3ce998f62abe1617303319b04f1c3f /module/plugins/hoster/YoutubeCom.py
parenthagg's rapidshare patch (diff)
downloadpyload-a0805f27015748638a5fb05fd55b746852c53362.tar.xz
html_unescape function, little plugin improvements
Diffstat (limited to 'module/plugins/hoster/YoutubeCom.py')
-rw-r--r--module/plugins/hoster/YoutubeCom.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index 1b8cf6b4b..908869236 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -3,6 +3,8 @@
import re
import urllib
+
+from module.utils import html_unescape
from module.plugins.Hoster import Hoster
class YoutubeCom(Hoster):
@@ -89,6 +91,6 @@ class YoutubeCom(Hoster):
if fmt in self.formats:
file_suffix = self.formats[fmt][0]
name = re.search(file_name_pattern, html).group(1).replace("/", "") + file_suffix
- pyfile.name = name #.replace("&amp;", "&").replace("ö", "oe").replace("ä", "ae").replace("ü", "ue")
+ pyfile.name = html_unescape(name)
self.download(fmt_dict[fmt])