summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-13 20:15:14 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-13 20:15:14 +0200
commit973cfeaf006813c6d9a3cbb163e6b15ec1b46977 (patch)
tree152a70dce7df0baf488e30c4af2cabb264164298 /module/plugins/hoster
parentlittle fixes (diff)
downloadpyload-973cfeaf006813c6d9a3cbb163e6b15ec1b46977.tar.xz
better retry function
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/RealdebridCom.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index 65a28669a..2d35108bc 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -80,10 +80,5 @@ class RealdebridCom(Hoster):
if check == "error":
#usual this download can safely be retried
- if self.tries < 3:
- self.tries += 1
- sleep(1)
- self.retry()
- else:
- self.fail("An error occured while generating link.")
+ self.retry(reason="An error occured while generating link.")