From e0cba81ae8d59ee24e1cd1f1cf1697c5e61118ce Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 2 Jan 2015 02:37:18 +0100 Subject: [PremiumTo] Fixup --- module/plugins/hooks/PremiumTo.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'module/plugins/hooks/PremiumTo.py') 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) -- cgit v1.2.3