diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-08 13:15:50 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-08 13:15:50 +0100 |
commit | 62244ce5fbcb34052240fbb468d2a61849f1a010 (patch) | |
tree | b228b7b01f38f589b64de1b3b330f0edcb4814cc /module | |
parent | [LinkdecrypterCom] Check if is down (diff) | |
download | pyload-62244ce5fbcb34052240fbb468d2a61849f1a010.tar.xz |
[ZippyshareCom] Update get_checksum
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/ZippyshareCom.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py index 9eaf09d04..0e19c36ac 100644 --- a/module/plugins/hoster/ZippyshareCom.py +++ b/module/plugins/hoster/ZippyshareCom.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class ZippyshareCom(SimpleHoster): __name__ = "ZippyshareCom" __type__ = "hoster" - __version__ = "0.57" + __version__ = "0.58" __pattern__ = r'(?P<HOST>http://www\d{0,2}\.zippyshare\.com)/v(?:/|iew\.jsp.*key=)(?P<KEY>\d+)' @@ -48,12 +48,13 @@ class ZippyshareCom(SimpleHoster): def get_checksum(self): try: - a = int(re.search(r'var a = (\d+)', self.html).group(1)) - b = int(re.search(r'var ab = a\%(\d+)', self.html).group(1)) + a1, a2 = map(int, re.search(r'\(\'downloadB\'\).omg = (\d+)%(\d+)', self.html).groups) + c1, c2 = map(int, re.search(r'\(\'downloadB\'\).omg\) \* \((\d+)%(\d+)', self.html).groups) + b = (a1 % a2) * (c1 % c2) except: self.error(_("Unable to calculate checksum")) else: - return a % b + return b + 18 def get_link(self): |