diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-28 02:35:39 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-28 02:35:39 +0100 |
commit | f6ff07af7da9abcb5af541d186572ca4539662e3 (patch) | |
tree | 8afde88c3047754c623bb437d64427fb4e25ce6f | |
parent | [LinkCryptWs] Tiny code cosmetic (diff) | |
download | pyload-f6ff07af7da9abcb5af541d186572ca4539662e3.tar.xz |
[ZippyshareCom] Typo
-rw-r--r-- | module/plugins/hoster/ZippyshareCom.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py index b8ad9b6cb..73dd1f22d 100644 --- a/module/plugins/hoster/ZippyshareCom.py +++ b/module/plugins/hoster/ZippyshareCom.py @@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class ZippyshareCom(SimpleHoster): __name__ = "ZippyshareCom" __type__ = "hoster" - __version__ = "0.64" + __version__ = "0.65" __pattern__ = r'(?P<HOST>http://www\d{0,2}\.zippyshare\.com)/v(?:/|iew\.jsp.*key=)(?P<KEY>\d+)' @@ -28,8 +28,8 @@ class ZippyshareCom(SimpleHoster): def setup(self): - self.multiDL = True - self.chunkLimit = -1 + self.multiDL = True + self.chunkLimit = -1 self.resumeDownload = True @@ -43,16 +43,17 @@ class ZippyshareCom(SimpleHoster): m = re.search(r'\+[ ]*\((\d+)[ ]*\%[ ]*(\d+)[ ]*\+[ ]*(\d+)[ ]*\%[ ]*(\d+)\)[ ]*\+', self.html) if m: a1, a2, c1, c2 = map(int, m.groups()) - res = (a1 % a2) + (c1 % c2) + b = (a1 % a2) + (c1 % c2) else: - a1, a2 = map(int, re.search(r'\(\'downloadB\'\).omg = (\d+)%(\d+)', self.html).groups()) + 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) - res += 18 - except: - self.error(_("Unable to calculate checksum")) + b = (a1 % a2) * (c1 % c2) + 18 + + except Exception, e: + self.error(_("Unable to calculate checksum"), e) + else: - return res + return b def get_link(self): |