summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: