summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YoutubeCom.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-04-04 17:05:48 +0200
committerGravatar spoob <spoob@gmx.de> 2010-04-04 17:05:48 +0200
commitaef3f5bfe11391f3b76ea3050a39c07b9cdaf0bf (patch)
tree36cec233e829855931b6945f788850beb605b5b7 /module/plugins/hoster/YoutubeCom.py
parentAdd DuckloadCom Hoster (diff)
downloadpyload-aef3f5bfe11391f3b76ea3050a39c07b9cdaf0bf.tar.xz
Fixed Youtube
Diffstat (limited to 'module/plugins/hoster/YoutubeCom.py')
-rw-r--r--module/plugins/hoster/YoutubeCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index a7c5a645d..7754b82a4 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -33,7 +33,7 @@ class YoutubeCom(Plugin):
self.download_html()
videoId = self.parent.url.split("v=")[1].split("&")[0]
- videoHash = re.search(r', "t": "([^"]+)"', self.html).group(1)
+ videoHash = re.search(r'&t=(.+?)&', self.html).group(1)
quality = ""
if self.config['quality'] == "sd":
quality = "&fmt=6"
@@ -57,7 +57,7 @@ class YoutubeCom(Plugin):
if self.html == None:
self.download_html()
- file_name_pattern = r"'VIDEO_TITLE': '(.*)',"
+ file_name_pattern = r'<span class="" title="(.+?)">'
is_hd_pattern = r"'IS_HD_AVAILABLE': (false|true)"
file_suffix = ".flv"
is_hd = re.search(is_hd_pattern, self.html).group(1)