summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-30 18:52:37 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-30 18:52:37 +0100
commitcf604ab396e7c875d10152291e83dfd63e45bfbd (patch)
tree98f5803cae2afee5b482bdcbbe824d2f15be50c7 /module
parentclosed #517, #520 (diff)
parentFix Real-Debrib error matching for non exising files. (diff)
downloadpyload-cf604ab396e7c875d10152291e83dfd63e45bfbd.tar.xz
Merge heads.
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/RealdebridCom.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index 4aed32614..8c1882daa 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -9,7 +9,7 @@ from module.plugins.Hoster import Hoster
class RealdebridCom(Hoster):
__name__ = "RealdebridCom"
- __version__ = "0.42"
+ __version__ = "0.43"
__type__ = "hoster"
__pattern__ = r"https?://.*real-debrid\..*"
@@ -48,6 +48,9 @@ class RealdebridCom(Hoster):
url = "http://real-debrid.com/lib/ajax/generator.php?lang=en&sl=1&link=%s&passwort=%s" % (quote(pyfile.url, ""), password)
page = self.load(url)
+ if page.strip() == 'Your file is unavailable on the hoster.':
+ self.offline()
+
error = re.search(r'<span id="generation-error">(.*)</span>', page)
if error: