diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-09-25 19:07:51 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-09-25 19:07:51 +0200 |
commit | 233bf90feb2941ecacee56966fdee2cd2f65d7b2 (patch) | |
tree | 503535952b2de69ebfde0c34cd5b95b5e03f4c5c /module/plugins/internal/MultiHoster.py | |
parent | multihosters - closed #618, store http/ftp accounts, add uptobox.com premium (diff) | |
download | pyload-233bf90feb2941ecacee56966fdee2cd2f65d7b2.tar.xz |
small plugin fixes
Diffstat (limited to 'module/plugins/internal/MultiHoster.py')
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index 0f25eb8d2..044bc3423 100644 --- a/module/plugins/internal/MultiHoster.py +++ b/module/plugins/internal/MultiHoster.py @@ -14,14 +14,16 @@ class MultiHoster(Hook): __version__ = "0.15" interval = 0 - hosters = [] replacements = [("2shared.com", "twoshared.com"), ("4shared.com", "fourshared.com"), ("cloudnator.com", "shragle.com"), ("ifile.it", "filecloud.io"), ("easy-share.com","crocko.com"), ("freakshare.net","freakshare.com"), - ("hellshare.com", "hellshare.cz"), ("share-rapid.cz","sharerapid.com"), + ("hellshare.com", "hellshare.cz"), ("share-rapid.cz","sharerapid.com"), ("sharerapid.cz","sharerapid.com"), ("ul.to","uploaded.to"), ("uploaded.net","uploaded.to")] - supported = [] ignored = [] - new_supported = [] + + def setup(self): + self.hosters = [] + self.supported = [] + self.new_supported = [] def getHosterCached(self): if not self.hosters: @@ -74,7 +76,7 @@ class MultiHoster(Hook): accountList = [ name.lower() for name, data in self.core.accountManager.accounts.items() if data ] excludedList = [] - + for hoster in self.getHosterCached(): name = remove_chars(hoster.lower(), "-.") @@ -112,7 +114,7 @@ class MultiHoster(Hook): if not klass.__pattern__: regexp = r".*(%s).*" % "|".join([x.replace(".", "\\.") for x in new_supported]) else: - regexp = r"%s|.*(%s).*" % ([klass.__pattern__], "|".join([x.replace(".", "\\.") for x in self.new_supported])) + regexp = r"%s|.*(%s).*" % (klass.__pattern__, "|".join([x.replace(".", "\\.") for x in self.new_supported])) self.logDebug("Regexp: %s" % regexp) dict = self.core.pluginManager.hosterPlugins[self.__name__] |