diff options
author | Pedro Algarvio <pedro@algarvio.me> | 2012-01-30 18:52:37 +0100 |
---|---|---|
committer | Pedro Algarvio <pedro@algarvio.me> | 2012-01-30 18:52:37 +0100 |
commit | cf604ab396e7c875d10152291e83dfd63e45bfbd (patch) | |
tree | 98f5803cae2afee5b482bdcbbe824d2f15be50c7 /module | |
parent | closed #517, #520 (diff) | |
parent | Fix Real-Debrib error matching for non exising files. (diff) | |
download | pyload-cf604ab396e7c875d10152291e83dfd63e45bfbd.tar.xz |
Merge heads.
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/RealdebridCom.py | 5 |
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:
|