diff options
| author | 2015-01-05 19:31:35 +0100 | |
|---|---|---|
| committer | 2015-01-05 19:31:35 +0100 | |
| commit | 7b8593899e3d37846fb3ed94d47d9daba13a02d7 (patch) | |
| tree | 5427650c3dd14b0c2878a1081be3709458bf48db /module/plugins/hooks/RehostTo.py | |
| parent | Created plugin for Nitroflare.com (diff) | |
| parent | Spare code improvements (diff) | |
| download | pyload-7b8593899e3d37846fb3ed94d47d9daba13a02d7.tar.xz | |
Merge branch 'stable' of https://github.com/pyload/pyload into stable
Diffstat (limited to 'module/plugins/hooks/RehostTo.py')
| -rw-r--r-- | module/plugins/hooks/RehostTo.py | 15 | 
1 files changed, 4 insertions, 11 deletions
diff --git a/module/plugins/hooks/RehostTo.py b/module/plugins/hooks/RehostTo.py index c3b626bf7..527770eb6 100644 --- a/module/plugins/hooks/RehostTo.py +++ b/module/plugins/hooks/RehostTo.py @@ -6,7 +6,7 @@ from module.plugins.internal.MultiHook import MultiHook  class RehostTo(MultiHook):      __name__    = "RehostTo"      __type__    = "hook" -    __version__ = "0.45" +    __version__ = "0.46"      __config__ = [("mode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("pluginlist", "str", "Hoster list (comma separated)", ""), @@ -25,16 +25,9 @@ class RehostTo(MultiHook):      def coreReady(self): -        self.account = self.core.accountManager.getAccountPlugin("RehostTo") +        super(RehostTo, self).coreReady() -        user = self.account.selectAccount()[0] +        user, data = self.account.selectAccount() -        if not user: -            self.logError(_("Please add your rehost.to account first and restart pyLoad")) -            return - -        data = self.account.getAccountInfo(user) -        self.ses = data['ses'] +        self.ses      = data['ses']          self.long_ses = data['long_ses'] - -        return MultiHook.coreReady(self)  | 
