diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-04-22 19:07:47 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-04-22 19:07:47 +0200 |
commit | 21723a45316c4cb3ee14ba4e151faa13e39f146b (patch) | |
tree | 89c0ec96ca3f81a474f103eafd71ac5488726a58 /module/plugins/hoster/MegauploadCom.py | |
parent | Clean up (diff) | |
download | pyload-21723a45316c4cb3ee14ba4e151faa13e39f146b.tar.xz |
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 17 |
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") |