diff options
Diffstat (limited to 'pyload/plugin/hoster')
-rw-r--r-- | pyload/plugin/hoster/HundredEightyUploadCom.py | 5 | ||||
-rw-r--r-- | pyload/plugin/hoster/ZippyshareCom.py | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/pyload/plugin/hoster/HundredEightyUploadCom.py b/pyload/plugin/hoster/HundredEightyUploadCom.py index 1cea5f4c5..de312245e 100644 --- a/pyload/plugin/hoster/HundredEightyUploadCom.py +++ b/pyload/plugin/hoster/HundredEightyUploadCom.py @@ -6,10 +6,13 @@ from pyload.plugin.internal.XFSHoster import XFSHoster class HundredEightyUploadCom(XFSHoster): __name = "HundredEightyUploadCom" __type = "hoster" - __version = "0.04" + __version = "0.05" __pattern = r'http://(?:www\.)?180upload\.com/\w{12}' __description = """180upload.com hoster plugin""" __license = "GPLv3" __authors = [("stickell", "l.stickell@yahoo.it")] + + + OFFLINE_PATTERN = r'>File Not Found' diff --git a/pyload/plugin/hoster/ZippyshareCom.py b/pyload/plugin/hoster/ZippyshareCom.py index 9ba673c39..91e88466a 100644 --- a/pyload/plugin/hoster/ZippyshareCom.py +++ b/pyload/plugin/hoster/ZippyshareCom.py @@ -9,7 +9,7 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster class ZippyshareCom(SimpleHoster): __name = "ZippyshareCom" __type = "hoster" - __version = "0.72" + __version = "0.73" __pattern = r'http://www\d{0,2}\.zippyshare\.com/v(/|iew\.jsp.*key=)(?P<KEY>[\w^_]+)' @@ -51,9 +51,9 @@ class ZippyshareCom(SimpleHoster): def get_checksum(self): try: - n = 2 - b = int(re.search(r'var b = (\d+)', self.html).group(1)) - checksum = int("%d3" % (n + n * 2 + b)) + b1 = eval(re.search(r'\.omg = (.+?);', self.html).group(1)) + b2 = eval(re.search(r'\* \((.+?)\)', self.html).group(1)) + checksum = b1 * b2 + 18 except Exception: self.error(_("Unable to calculate checksum")) |