summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Ivo Buff <kagenoshin@gmx.ch> 2013-08-07 22:02:26 +0200
committerGravatar Ivo Buff <kagenoshin@gmx.ch> 2013-08-07 22:02:26 +0200
commitd61d1d0b0901acc90770cc48613425013efc0a3d (patch)
tree404124078a34e6ba90fd593dd95734956ce77011 /module/plugins/hoster
parentMore link transformation (diff)
downloadpyload-d61d1d0b0901acc90770cc48613425013efc0a3d.tar.xz
simplydebrid "handle" bad links
simplydebrid "handle" bad links
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/SimplydebridCom.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/plugins/hoster/SimplydebridCom.py b/module/plugins/hoster/SimplydebridCom.py
index f13b16ae0..d13c161e8 100644
--- a/module/plugins/hoster/SimplydebridCom.py
+++ b/module/plugins/hoster/SimplydebridCom.py
@@ -52,3 +52,8 @@ class SimplydebridCom(Hoster):
self.logDebug("Unrestricted URL: " + new_url)
self.download(new_url, disposition=True)
+
+ check = self.checkDownload({"bad1": "No address associated with hostname", "bad2": "<html"})
+
+ if check == "bad1" or check == "bad2":
+ self.retry(3, 3600, 'Bad file downloaded') \ No newline at end of file