summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-19 00:55:28 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-19 00:55:28 +0100
commitb6e0ba974abe0d6bf712ecf5c0d116804050c9e3 (patch)
tree3fd8162cf55e8baaf9b65da99241c8e2529499e3
parent[ClickAndLoad] Fix https://github.com/pyload/pyload/issues/1186 (diff)
downloadpyload-b6e0ba974abe0d6bf712ecf5c0d116804050c9e3.tar.xz
[ZippyshareCom] Update get_checksum
-rw-r--r--module/plugins/hoster/ZippyshareCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py
index a43f70cbd..615559989 100644
--- a/module/plugins/hoster/ZippyshareCom.py
+++ b/module/plugins/hoster/ZippyshareCom.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
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"))