summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-18 07:43:47 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-18 07:43:47 +0100
commit03aad64b6b714e55b30d27cbe6e3cda6b190d399 (patch)
tree547966cfd303d09f264fd14a4d1d56bbd0308944 /module/plugins
parenthosterlinks - fix md5 hash (diff)
downloadpyload-03aad64b6b714e55b30d27cbe6e3cda6b190d399.tar.xz
Support file hosters under maintenance and generated links spans.
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/RealdebridCom.py6
1 files changed, 6 insertions, 0 deletions
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'<span id="generation-error">(.*)</span>', page)
+ generation_ok = re.search(r'<span id="generation-ok"><a href="(.*)">(.*)</a></span>', 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