summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegauploadCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-04-22 19:07:47 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-04-22 19:07:47 +0200
commit21723a45316c4cb3ee14ba4e151faa13e39f146b (patch)
tree89c0ec96ca3f81a474f103eafd71ac5488726a58 /module/plugins/hoster/MegauploadCom.py
parentClean up (diff)
downloadpyload-21723a45316c4cb3ee14ba4e151faa13e39f146b.tar.xz
closed #269, #282, #283, #285, #286, #287
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r--module/plugins/hoster/MegauploadCom.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index 9158e929e..9e5081fd3 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -30,17 +30,20 @@ def getInfo(urls):
for data in api:
if data[0].startswith("id"):
tmp = [x.split("=") for x in data]
- if tmp[2][1] == "3":
- status = 3
- elif tmp[0][1] == "0":
+ if tmp[0][1] == "0":
status = 2
elif tmp[0][1] == "1":
status = 1
+ elif tmp[2][1] == "3":
+ status = 3
else:
status = 3
-
- name = unescape(tmp[3][1])
- size = tmp[1][1]
+
+ name = None
+ size = 0
+ if status != 1:
+ name = unescape(tmp[3][1])
+ size = tmp[1][1]
result.append( (name, size, status, urls[i] ) )
i += 1
@@ -51,7 +54,7 @@ class MegauploadCom(Hoster):
__name__ = "MegauploadCom"
__type__ = "hoster"
__pattern__ = r"http://[\w\.]*?(megaupload)\.com/.*?(\?|&)d=[0-9A-Za-z]+"
- __version__ = "0.2"
+ __version__ = "0.21"
__description__ = """Megaupload.com Download Hoster"""
__author_name__ = ("spoob")
__author_mail__ = ("spoob@pyload.org")