summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YoutubeCom.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-04-06 17:39:24 +0200
committerGravatar spoob <spoob@gmx.de> 2010-04-06 17:39:24 +0200
commit8ef92d8f6d80a8fa4a94f82b28e74acc4dcb8910 (patch)
tree81eacb51fda5caa473baed446dec95324c5c534e /module/plugins/hoster/YoutubeCom.py
parentUniversal File Not Found (diff)
downloadpyload-8ef92d8f6d80a8fa4a94f82b28e74acc4dcb8910.tar.xz
Some Youtube Fixes, ugly
Diffstat (limited to 'module/plugins/hoster/YoutubeCom.py')
-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 7754b82a4..5f3874640 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -56,8 +56,7 @@ class YoutubeCom(Plugin):
def get_file_name(self):
if self.html == None:
self.download_html()
-
- file_name_pattern = r'<span class="" title="(.+?)">'
+ file_name_pattern = '<meta name="title" content="(.+?)">'
is_hd_pattern = r"'IS_HD_AVAILABLE': (false|true)"
file_suffix = ".flv"
is_hd = re.search(is_hd_pattern, self.html).group(1)
@@ -66,7 +65,7 @@ class YoutubeCom(Plugin):
file_suffix = ".mp4"
name = re.search(file_name_pattern, self.html).group(1).replace("/", "") + file_suffix
- name = name.replace("&amp;", "&")
+ name = name.replace("&amp;", "&").replace("ö", "oe").replace("ä", "ae").replace("ü", "ue")
return name
def file_exists(self):