diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-30 11:14:07 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-30 11:14:07 +0200 |
commit | 0448dcc3467446936c64d6b47cc677094614991b (patch) | |
tree | 1957618423c71dd310affe689c21db7af6906765 /module/plugins | |
parent | fix netload (diff) | |
download | pyload-0448dcc3467446936c64d6b47cc677094614991b.tar.xz |
youtube, new file format
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index 908869236..9acd5b358 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -11,7 +11,7 @@ class YoutubeCom(Hoster): __name__ = "YoutubeCom" __type__ = "hoster" __pattern__ = r"http://(www\.)?(de\.)?\youtube\.com/watch\?v=.*" - __version__ = "0.2" + __version__ = "0.21" __config__ = [("quality", "sd;hd;fullhd", "Quality Setting", "hd"), ("fmt", "int", "FMT Number 0-45", 0), (".mp4", "bool", "Allow .mp4", True), @@ -28,11 +28,12 @@ class YoutubeCom(Hoster): 18: (".mp4", 480, 360, 2), 43: (".webm", 640, 360, 3), 34: (".flv", 640, 360, 4), - 35: (".flv", 854, 480, 5), - 45: (".webm", 1280, 720, 6), - 22: (".mp4", 1280, 720, 7), - 37: (".mp4", 1920, 1080, 8), - 38: (".mp4", 4096, 3072, 9), + 44: (".webm", 854, 480, 5), + 35: (".flv", 854, 480, 6), + 45: (".webm", 1280, 720, 7), + 22: (".mp4", 1280, 720, 8), + 37: (".mp4", 1920, 1080, 9), + 38: (".mp4", 4096, 3072, 10), } @@ -42,8 +43,8 @@ class YoutubeCom(Hoster): if "watch-player-unavailable" in html: self.offline() - videoId = pyfile.url.split("v=")[1].split("&")[0] - videoHash = re.search(r'&t=(.+?)&', html).group(1) + #videoId = pyfile.url.split("v=")[1].split("&")[0] + #videoHash = re.search(r'&t=(.+?)&', html).group(1) file_name_pattern = '<meta name="title" content="(.+?)">' |