summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-19 15:23:43 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-19 15:23:43 +0100
commit4edf7ba7b6dc721324b532bcfe6d92c2d91ec09a (patch)
tree65e93ccf8422cc0bf33cc2ed681641b90a5d4d79 /module/plugins
parentUpdate Mediafire, folder support for Fileserve and Mediafire (diff)
downloadpyload-4edf7ba7b6dc721324b532bcfe6d92c2d91ec09a.tar.xz
catch real debrid error, when ip is blocked
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/RealdebridCom.py6
1 files changed, 4 insertions, 2 deletions
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