summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-18 18:39:51 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-18 18:39:51 +0200
commitae00c325774f119c39c404069702f129b9655d91 (patch)
treed50bb2ee14ed2017eb08c19cadad21dbd551342a
parentdetect invalid downloads on fileserv (diff)
downloadpyload-ae00c325774f119c39c404069702f129b9655d91.tar.xz
closed #371
-rw-r--r--module/network/HTTPChunk.py1
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index 14900ca49..440115c77 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -20,7 +20,6 @@ from os import remove, stat
from os.path import exists
from time import sleep
from re import search
-from logging import getLogger
import pycurl
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index 03f24a2c9..afc7312f1 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -111,6 +111,11 @@ class ShareonlineBiz(Hoster):
download_url = b64decode(re.search(file_url_pattern, self.html).group(1))
self.download(download_url)
+
+ check = self.checkDownload({"invalid" : "Dieses Download-Ticket ist ungültig!"})
+ if check == "invalid":
+ self.retry(reason=_("Invalid download ticket"))
+
def handleAPIPremium(self): #should be working better
self.resumeDownload = True