summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2011-12-17 16:23:49 +0100
committerGravatar Jeix <devnull@localhost> 2011-12-17 16:23:49 +0100
commitb4441d8468b3af30c4d6b3fdaecc1f5276aae909 (patch)
tree3ffd41ec2a715bb7e481a4cda6e2d57b4b335fb1
parentencoding fix (diff)
downloadpyload-b4441d8468b3af30c4d6b3fdaecc1f5276aae909.tar.xz
improve share-online
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index 2a6645e86..ab7f5b249 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -13,7 +13,7 @@ from module.plugins.Plugin import chunks
def getInfo(urls):
- api_url_base = "http://www.share-online.biz/linkcheck/linkcheck.php"
+ api_url_base = "http://api.share-online.biz/linkcheck.php"
for chunk in chunks(urls, 90):
api_param_file = {"links": "\n".join(x.replace("http://www.share-online.biz/dl/","").rstrip("/") for x in chunk)} #api only supports old style links
@@ -67,7 +67,7 @@ class ShareonlineBiz(Hoster):
self.handleFree()
def downloadAPIData(self):
- api_url_base = "http://www.share-online.biz/linkcheck/linkcheck.php?md5=1"
+ api_url_base = "http://api.share-online.biz/linkcheck.php?md5=1"
api_param_file = {"links": self.pyfile.url.replace("http://www.share-online.biz/dl/","")} #api only supports old style links
src = self.load(api_url_base, cookies=False, post=api_param_file)
@@ -116,9 +116,12 @@ class ShareonlineBiz(Hoster):
self.download(download_url)
- check = self.checkDownload({"invalid" : "Dieses Download-Ticket ist ungültig!"})
+ check = self.checkDownload({"invalid" : "Dieses Download-Ticket ist ungültig!",
+ "error" : "Es ist ein unbekannter Fehler aufgetreten"})
if check == "invalid":
self.retry(reason=_("Invalid download ticket"))
+ elif check == "error":
+ self.fail(reason=_("ShareOnline internal problems"))
def handleAPIPremium(self): #should be working better