From aef3f5bfe11391f3b76ea3050a39c07b9cdaf0bf Mon Sep 17 00:00:00 2001 From: spoob Date: Sun, 4 Apr 2010 17:05:48 +0200 Subject: Fixed Youtube --- module/plugins/hoster/YoutubeCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins') 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'' is_hd_pattern = r"'IS_HD_AVAILABLE': (false|true)" file_suffix = ".flv" is_hd = re.search(is_hd_pattern, self.html).group(1) -- cgit v1.2.3