From 8f8284387470ae45b6ddd5f70352f65de0259566 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Mon, 30 Jan 2012 17:51:33 +0000 Subject: Fix Real-Debrib error matching for non exising files. --- module/plugins/hoster/RealdebridCom.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'(.*)', page) if error: -- cgit v1.2.3