diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/network/HTTPChunk.py | 1 | ||||
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 5 |
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 |