summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/Premium4Me.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/Premium4Me.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/Premium4Me.py')
-rw-r--r--module/plugins/hooks/Premium4Me.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/module/plugins/hooks/Premium4Me.py b/module/plugins/hooks/Premium4Me.py
index fc3ce2343..b49eb41a9 100644
--- a/module/plugins/hooks/Premium4Me.py
+++ b/module/plugins/hooks/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):