summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-15 02:10:10 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-15 02:10:10 +0100
commit4de9ef03e364c432ead17e8d866569e1053d84ff (patch)
tree45e6735799d6b91bc519e9348878a52a34de7244
parent[ClickAndLoad] Fixup (diff)
downloadpyload-4de9ef03e364c432ead17e8d866569e1053d84ff.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 47a4acd03..a43f70cbd 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.71"
+ __version__ = "0.72"
__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:
- m = re.search(r'\+[ ]*\((\d+)[ ]*\%[ ]*(\d+)[ ]*\+[ ]*(\d+)[ ]*\%[ ]*(\d+)\)[ ]*\+', self.html)
- a1, a2, c1, c2 = map(int, m.groups())
- checksum = (a1 % a2) + (c1 % c2)
+ n = 2
+ b = int(re.search(r'var b = (\d+)', self.html).group(1))
+ checksum = int("%d3" % (n + n * 2 + b))
except Exception:
self.error(_("Unable to calculate checksum"))