diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-09-24 23:54:50 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-09-24 23:54:50 +0200 |
commit | b65c4091d5c5e793d8a9df17a46657d45c3a1292 (patch) | |
tree | 40a420e5213d28634b75408059a2dc3687e461d1 /module/plugins/hooks/Premium4Me.py | |
parent | update hellshare/hellspy patterns (diff) | |
download | pyload-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.py | 15 |
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):
|