From a0805f27015748638a5fb05fd55b746852c53362 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 15 Jun 2011 17:35:48 +0200 Subject: html_unescape function, little plugin improvements --- module/plugins/hoster/YoutubeCom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/plugins/hoster/YoutubeCom.py') 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("&", "&").replace("ö", "oe").replace("ä", "ae").replace("ü", "ue") + pyfile.name = html_unescape(name) self.download(fmt_dict[fmt]) -- cgit v1.2.3