From 973cfeaf006813c6d9a3cbb163e6b15ec1b46977 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 13 Jun 2011 20:15:14 +0200 Subject: better retry function --- module/plugins/hoster/RealdebridCom.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'module/plugins/hoster') 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.") -- cgit v1.2.3