diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-27 19:41:03 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-27 19:41:03 +0200 |
commit | cf8fea4179a673ffe2ec50de3a5d948a61f849aa (patch) | |
tree | a24f3be129904f22836b8caa7fdca33cf0d7547a /module/plugins/hoster | |
parent | DepositFiles lang fix (diff) | |
download | pyload-cf8fea4179a673ffe2ec50de3a5d948a61f849aa.tar.xz |
Shareonline, zshare fix, testing __slots__ attribute
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 6 | ||||
-rw-r--r-- | module/plugins/hoster/ZShareNet.py | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 360f0d788..03f24a2c9 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -38,7 +38,7 @@ class ShareonlineBiz(Hoster): __name__ = "ShareonlineBiz" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?(share\-online\.biz|egoshare\.com)/(download.php\?id\=|dl/)[\w]+" - __version__ = "0.2" + __version__ = "0.21" __description__ = """Shareonline.biz Download Hoster""" __author_name__ = ("spoob", "mkaay") __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de") @@ -89,7 +89,7 @@ class ShareonlineBiz(Hoster): self.setWait(120) self.log.info("%s: no free slots, waiting 120 seconds" % self.__name__) self.wait() - self.retry() + self.retry(max_tries=60) if "Captcha number error or expired" in self.html: captcha = self.decryptCaptcha("http://www.share-online.biz/captcha.php", get={"rand":"0.%s" % random.randint(10**15,10**16)}) @@ -149,7 +149,7 @@ class ShareonlineBiz(Hoster): except: self.fail("Session issue") - self.download(download_url, cookies=True) + self.download(download_url) def checksum(self, local_file): if self.api_data and self.api_data["checksum"]: diff --git a/module/plugins/hoster/ZShareNet.py b/module/plugins/hoster/ZShareNet.py index d3453ee5e..6ef456d97 100644 --- a/module/plugins/hoster/ZShareNet.py +++ b/module/plugins/hoster/ZShareNet.py @@ -11,9 +11,9 @@ class ZShareNet(Hoster): __name__ = "ZShareNet" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?zshare\.net/(download|video|image|audio|flash)/.*" - __version__ = "0.1" + __version__ = "0.2" __description__ = """ZShareNet Download Hoster""" - __author_name__ = ("espes") + __author_name__ = ("espes","Cptn Sandwich") def setup(self): self.multiDL = False @@ -22,6 +22,8 @@ class ZShareNet(Hoster): def process(self, pyfile): self.pyfile = pyfile + self.pyfile.url = re.sub("(video|image|audio|flash)","download",self.pyfile.url) + self.html = self.load(pyfile.url) if "File Not Found" in self.html: self.offline() @@ -65,4 +67,4 @@ class ZShareNet(Hoster): if check == "unav": self.fail("Plugin defect") elif check == "404": - self.offline()
\ No newline at end of file + self.offline() |