summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/RealdebridCom.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-09-24 23:54:50 +0200
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-09-24 23:54:50 +0200
commitb65c4091d5c5e793d8a9df17a46657d45c3a1292 (patch)
tree40a420e5213d28634b75408059a2dc3687e461d1 /module/plugins/hooks/RealdebridCom.py
parentupdate hellshare/hellspy patterns (diff)
downloadpyload-b65c4091d5c5e793d8a9df17a46657d45c3a1292.tar.xz
multihosters - closed #618, store http/ftp accounts, add uptobox.com premium
Diffstat (limited to 'module/plugins/hooks/RealdebridCom.py')
-rw-r--r--module/plugins/hooks/RealdebridCom.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/module/plugins/hooks/RealdebridCom.py b/module/plugins/hooks/RealdebridCom.py
index bd3179673..0f06d14bc 100644
--- a/module/plugins/hooks/RealdebridCom.py
+++ b/module/plugins/hooks/RealdebridCom.py
@@ -5,7 +5,7 @@ from module.plugins.internal.MultiHoster import MultiHoster
class RealdebridCom(MultiHoster):
__name__ = "RealdebridCom"
- __version__ = "0.41"
+ __version__ = "0.42"
__type__ = "hook"
__config__ = [("activated", "bool", "Activated", "False"),
@@ -16,21 +16,8 @@ class RealdebridCom(MultiHoster):
__author_name__ = ("Devirex, Hazzard")
__author_mail__ = ("naibaf_11@yahoo.de")
- replacements = [("freakshare.net", "freakshare.com")]
-
def getHoster(self):
https = "https" if self.getConfig("https") else "http"
page = getURL(https + "://real-debrid.com/api/hosters.php").replace("\"","").strip()
- hosters = set([x.strip() for x in page.split(",") if x.strip()])
-
- configMode = self.getConfig('hosterListMode')
- if configMode in ("listed", "unlisted"):
- configList = set(self.getConfig('hosterList').strip().lower().replace('|',',').replace(';',',').split(','))
- configList.discard(u'')
- if configMode == "listed":
- hosters &= configList
- else:
- hosters -= configList
-
- return list(hosters)
+ return [x.strip() for x in page.split(",") if x.strip()]