From 4edf7ba7b6dc721324b532bcfe6d92c2d91ec09a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 19 Nov 2011 15:23:43 +0100 Subject: catch real debrid error, when ip is blocked --- module/plugins/hoster/RealdebridCom.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py index c23e19b4d..62c09aaa8 100644 --- a/module/plugins/hoster/RealdebridCom.py +++ b/module/plugins/hoster/RealdebridCom.py @@ -34,7 +34,7 @@ class RealdebridCom(Hoster): def process(self, pyfile): if not self.account: - self.log.error(_("Please enter your Real-debrid account or deactivate this plugin")) + self.logError(_("Please enter your Real-debrid account or deactivate this plugin")) self.fail("No Real-debrid account provided") self.log.debug("Real-Debrid: Old URL: %s" % pyfile.url) @@ -52,11 +52,13 @@ class RealdebridCom(Hoster): if error: msg = error.group(1).strip() - self.log.debug(page) + self.logDebug(page) if msg == "Your file is unavailable on the hoster.": self.offline() else: self.fail(msg) + elif url == 'error': + self.fail("Your IP is most likely blocked. Please contact RealDebrid support") else: new_url = page -- cgit v1.2.3