summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-30 11:14:07 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-30 11:14:07 +0200
commit0448dcc3467446936c64d6b47cc677094614991b (patch)
tree1957618423c71dd310affe689c21db7af6906765 /module/plugins
parentfix netload (diff)
downloadpyload-0448dcc3467446936c64d6b47cc677094614991b.tar.xz
youtube, new file format
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/YoutubeCom.py17
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'&amp;t=(.+?)&', html).group(1)
+ #videoId = pyfile.url.split("v=")[1].split("&")[0]
+ #videoHash = re.search(r'&amp;t=(.+?)&', html).group(1)
file_name_pattern = '<meta name="title" content="(.+?)">'