From 03aad64b6b714e55b30d27cbe6e3cda6b190d399 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 18 Jan 2012 06:43:47 +0000 Subject: Support file hosters under maintenance and generated links spans. --- module/plugins/hoster/RealdebridCom.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'module/plugins') diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py index 376ae3414..34c637a0e 100644 --- a/module/plugins/hoster/RealdebridCom.py +++ b/module/plugins/hoster/RealdebridCom.py @@ -48,6 +48,9 @@ class RealdebridCom(Hoster): page = self.load(url) error = re.search(r'(.*)', page) + generation_ok = re.search(r'(.*)', page) + if generation_ok: + page = generation_ok.group(1).strip() if error: msg = error.group(1).strip() @@ -58,6 +61,9 @@ class RealdebridCom(Hoster): self.fail(msg) elif url == 'error': self.fail("Your IP is most likely blocked. Please contact RealDebrid support") + elif page == "File's hoster is in maintenance. Try again later.": + self.log.warning(page) + self.tempOffline() else: new_url = page -- cgit v1.2.3