diff options
Diffstat (limited to 'pyload/plugins/hooks')
-rw-r--r-- | pyload/plugins/hooks/MyfastfileCom.py (renamed from pyload/plugins/hooks/MultiDebridCom.py) | 12 | ||||
-rw-r--r-- | pyload/plugins/hooks/PremiumTo.py (renamed from pyload/plugins/hooks/Premium4Me.py) | 11 |
2 files changed, 12 insertions, 11 deletions
diff --git a/pyload/plugins/hooks/MultiDebridCom.py b/pyload/plugins/hooks/MyfastfileCom.py index 6aa5ba3eb..311bc2212 100644 --- a/pyload/plugins/hooks/MultiDebridCom.py +++ b/pyload/plugins/hooks/MyfastfileCom.py @@ -1,14 +1,14 @@ # -*- coding: utf-8 -*- -from pyload.utils import json_loads from pyload.network.RequestFactory import getURL from pyload.plugins.internal.MultiHoster import MultiHoster +from pyload.utils import json_loads -class MultiDebridCom(MultiHoster): - __name__ = "MultiDebridCom" +class MyfastfileCom(MultiHoster): + __name__ = "MyfastfileCom" __type__ = "hook" - __version__ = "0.01" + __version__ = "0.02" __config__ = [("activated", "bool", "Activated", False), ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"), @@ -16,13 +16,13 @@ class MultiDebridCom(MultiHoster): ("unloadFailing", "bool", "Revert to standard download if download fails", False), ("interval", "int", "Reload interval in hours (0 to disable)", 24)] - __description__ = """Multi-debrid.com hook plugin""" + __description__ = """Myfastfile.com hook plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" def getHoster(self): - json_data = getURL('http://multi-debrid.com/api.php?hosts', decode=True) + json_data = getURL('http://myfastfile.com/api.php?hosts', decode=True) self.logDebug('JSON data: ' + json_data) json_data = json_loads(json_data) diff --git a/pyload/plugins/hooks/Premium4Me.py b/pyload/plugins/hooks/PremiumTo.py index 6841dfa90..b95b15b53 100644 --- a/pyload/plugins/hooks/Premium4Me.py +++ b/pyload/plugins/hooks/PremiumTo.py @@ -4,10 +4,10 @@ from pyload.network.RequestFactory import getURL from pyload.plugins.internal.MultiHoster import MultiHoster -class Premium4Me(MultiHoster): - __name__ = "Premium4Me" +class PremiumTo(MultiHoster): + __name__ = "PremiumTo" __type__ = "hook" - __version__ = "0.03" + __version__ = "0.04" __config__ = [("activated", "bool", "Activated", False), ("hosterListMode", "all;listed;unlisted", "Use for downloads from supported hosters:", "all"), @@ -19,11 +19,12 @@ class Premium4Me(MultiHoster): def getHoster(self): - page = getURL("http://premium.to/api/hosters.php?authcode=%s" % self.account.authcode) + page = getURL("http://premium.to/api/hosters.php", + get={'username': self.account.username, 'password': self.account.password}) return [x.strip() for x in page.replace("\"", "").split(";")] def coreReady(self): - self.account = self.core.accountManager.getAccountPlugin("Premium4Me") + self.account = self.core.accountManager.getAccountPlugin("PremiumTo") user = self.account.selectAccount()[0] |