summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-05 18:22:06 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-05 18:22:06 +0200
commitc5ddf6568896c88e8cec20f558940a3db2a673bc (patch)
treefe6c4a36498d88b5f4b5939ccef209c567498d90 /module
parentmerge (diff)
downloadpyload-c5ddf6568896c88e8cec20f558940a3db2a673bc.tar.xz
youtube fix
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/YoutubeCom.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index 8eab8f384..048e1ab70 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -54,15 +54,16 @@ class YoutubeCom(Hoster):
fmt_url_map = re.search(fmt_pattern, html).group(1)
links = urllib.unquote(fmt_url_map).split(",")
+
fmt_dict = {}
- for i in range(1, len(links)):
- fmt = links[i].split("|")[0]
+ for link in links:
+ fmt = link.split("|")[0]
try:
fmt = int(fmt)
except Exception:
continue
- fmt_dict[fmt] = links[i].split("|")[1]
+ fmt_dict[fmt] = link.split("|")[1]
self.logDebug("Found links: %s" % fmt_dict)