summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/HundredEightyUploadCom.py4
-rw-r--r--module/plugins/hoster/ZippyshareCom.py8
2 files changed, 7 insertions, 5 deletions
diff --git a/module/plugins/hoster/HundredEightyUploadCom.py b/module/plugins/hoster/HundredEightyUploadCom.py
index 32d36ddb9..2a35a008f 100644
--- a/module/plugins/hoster/HundredEightyUploadCom.py
+++ b/module/plugins/hoster/HundredEightyUploadCom.py
@@ -6,7 +6,7 @@ from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
class HundredEightyUploadCom(XFSHoster):
__name__ = "HundredEightyUploadCom"
__type__ = "hoster"
- __version__ = "0.04"
+ __version__ = "0.05"
__pattern__ = r'http://(?:www\.)?180upload\.com/\w{12}'
@@ -15,5 +15,7 @@ class HundredEightyUploadCom(XFSHoster):
__authors__ = [("stickell", "l.stickell@yahoo.it")]
+ OFFLINE_PATTERN = r'>File Not Found'
+
getInfo = create_getInfo(HundredEightyUploadCom)
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"))