summaryrefslogtreecommitdiffstats
path: root/module/plugins/addons/ZeveraCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/addons/ZeveraCom.py')
-rw-r--r--module/plugins/addons/ZeveraCom.py22
1 files changed, 4 insertions, 18 deletions
diff --git a/module/plugins/addons/ZeveraCom.py b/module/plugins/addons/ZeveraCom.py
index 46c752c21..cadf60069 100644
--- a/module/plugins/addons/ZeveraCom.py
+++ b/module/plugins/addons/ZeveraCom.py
@@ -5,29 +5,15 @@ from module.plugins.internal.MultiHoster import MultiHoster
class ZeveraCom(MultiHoster):
__name__ = "ZeveraCom"
- __version__ = "0.01"
+ __version__ = "0.02"
__type__ = "hook"
__config__ = [("activated", "bool", "Activated", "False"),
("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),
("hosterList", "str", "Hoster list (comma separated)", "")]
__description__ = """Real-Debrid.com hook plugin"""
- __author_name__ = ("Devirex, Hazzard")
- __author_mail__ = ("naibaf_11@yahoo.de")
-
- replacements = [("freakshare.net", "freakshare.com"), ("2shared.com", "twoshared.com"), ("4shared.com", "fourshared.com"),
- ("easy-share.com", "crocko.com"), ("hellshare.com", "hellshare.cz")]
+ __author_name__ = ("zoidberg")
+ __author_mail__ = ("zoidberg@mujmail.cz")
def getHoster(self):
page = getURL("http://www.zevera.com/jDownloader.ashx?cmd=gethosters")
- hosters = set([x.strip() for x in page.replace("\"", "").split(",")])
-
- 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) \ No newline at end of file
+ return [x.strip() for x in page.replace("\"", "").split(",")] \ No newline at end of file