diff options
author | Pedro Algarvio <pedro@algarvio.me> | 2012-01-30 18:51:33 +0100 |
---|---|---|
committer | Pedro Algarvio <pedro@algarvio.me> | 2012-01-30 18:51:33 +0100 |
commit | 8f8284387470ae45b6ddd5f70352f65de0259566 (patch) | |
tree | 48d3516ad7868a472659e871f078f136f857826b | |
parent | increase version (diff) | |
download | pyload-8f8284387470ae45b6ddd5f70352f65de0259566.tar.xz |
Fix Real-Debrib error matching for non exising files.
-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:
|