diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-02 02:37:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-02 02:37:18 +0100 |
commit | e0cba81ae8d59ee24e1cd1f1cf1697c5e61118ce (patch) | |
tree | fa3dca0013f2ddeec68b6bb8cc728829379748b1 /module/plugins/hooks/PremiumTo.py | |
parent | [RapiduNet] Account trafficleft (diff) | |
download | pyload-e0cba81ae8d59ee24e1cd1f1cf1697c5e61118ce.tar.xz |
[PremiumTo] Fixup
Diffstat (limited to 'module/plugins/hooks/PremiumTo.py')
-rw-r--r-- | module/plugins/hooks/PremiumTo.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/module/plugins/hooks/PremiumTo.py b/module/plugins/hooks/PremiumTo.py index 348bb6789..a4203c8bb 100644 --- a/module/plugins/hooks/PremiumTo.py +++ b/module/plugins/hooks/PremiumTo.py @@ -6,7 +6,7 @@ from module.plugins.internal.MultiHook import MultiHook class PremiumTo(MultiHook): __name__ = "PremiumTo" __type__ = "hook" - __version__ = "0.06" + __version__ = "0.07" __config__ = [("mode", "all;listed;unlisted", "Use for downloads from supported hosters:", "all"), ("pluginlist", "str", "Hoster list (comma separated)", "")] @@ -22,15 +22,3 @@ class PremiumTo(MultiHook): page = self.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("PremiumTo") - - user = self.account.selectAccount()[0] - - if not user: - self.logError(_("Please add your premium.to account first and restart pyLoad")) - return - - return MultiHook.coreReady(self) |