diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-09-30 18:44:20 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-09-30 18:44:20 +0200 |
commit | 80527abdc69f3fb4c5cf5518b215594146cde0f5 (patch) | |
tree | 33d1ba282bf5bd2d19a08566740aeeda44b7c6d4 /module/plugins/internal | |
parent | update hellshare.cz (diff) | |
download | pyload-80527abdc69f3fb4c5cf5518b215594146cde0f5.tar.xz |
filebeer folder crypter, multihoster unload fix
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index 044bc3423..04353dcc8 100644 --- a/module/plugins/internal/MultiHoster.py +++ b/module/plugins/internal/MultiHoster.py @@ -11,7 +11,7 @@ class MultiHoster(Hook): Generic MultiHoster plugin """ - __version__ = "0.15" + __version__ = "0.16" interval = 0 replacements = [("2shared.com", "twoshared.com"), ("4shared.com", "fourshared.com"), ("cloudnator.com", "shragle.com"), @@ -124,7 +124,6 @@ class MultiHoster(Hook): def unloadHoster(self, hoster): dict = self.core.pluginManager.hosterPlugins[hoster] - self.logDebug(dict) if "module" in dict: del dict["module"] @@ -137,8 +136,10 @@ class MultiHoster(Hook): self.unloadHoster(hoster) def downloadFailed(self, pyfile): - hdict = self.core.pluginManager.hosterPlugins[pyfile.pluginname] - self.logDebug("Unload MultiHoster", pyfile.pluginname, hdict) - if "new_name" in hdict and hdict['new_name'] == self.__name__: - self.unloadHoster(pyfile.pluginname) - pyfile.setStatus("queued")
\ No newline at end of file + """remove plugin override if download fails but not if file is offline/temp.offline""" + if pyfile.hasStatus("failed"): + hdict = self.core.pluginManager.hosterPlugins[pyfile.pluginname] + self.logDebug("Unload MultiHoster", pyfile.pluginname, hdict) + if "new_name" in hdict and hdict['new_name'] == self.__name__: + self.unloadHoster(pyfile.pluginname) + pyfile.setStatus("queued")
\ No newline at end of file |