summaryrefslogtreecommitdiffstats
path: root/module/plugins/addons/Premium4Me.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/addons/Premium4Me.py')
-rw-r--r--module/plugins/addons/Premium4Me.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/module/plugins/addons/Premium4Me.py b/module/plugins/addons/Premium4Me.py
index fc3ce2343..b49eb41a9 100644
--- a/module/plugins/addons/Premium4Me.py
+++ b/module/plugins/addons/Premium4Me.py
@@ -15,23 +15,10 @@ class Premium4Me(MultiHoster):
__author_name__ = ("RaNaN", "zoidberg")
__author_mail__ = ("RaNaN@pyload.org", "zoidberg@mujmail.cz")
- replacements = [("freakshare.net", "freakshare.com")]
-
def getHoster(self):
page = getURL("http://premium4.me/api/hosters.php?authcode=%s" % self.account.authcode)
- 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(',','|').split('|'))
- configList.discard(u'')
- if configMode == "listed":
- hosters &= configList
- elif configMode == "unlisted":
- hosters -= configList
-
- return list(hosters)
+ return [x.strip() for x in page.replace("\"", "").split(";")]
def coreReady(self):