diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-02 15:48:52 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-02 15:48:52 +0200 |
commit | 9216dc73ee645ec9c64b376a982024c4e4a92e71 (patch) | |
tree | d9ae019b35d39ae7d7822f49e53cb392b69661dc /module | |
parent | rapidgator.net premium, novafile.com free, multihoster schedule refresh (diff) | |
download | pyload-9216dc73ee645ec9c64b376a982024c4e4a92e71.tar.xz |
little multihoster fix
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index e6dc621b0..f35f35c5c 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.17" + __version__ = "0.18" 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"), @@ -141,7 +141,7 @@ class MultiHoster(Hook): # create new regexp regexp = r".*(%s).*" % "|".join([x.replace(".", "\\.") for x in self.new_supported]) - if hasattr(klass, "__pattern__") and '://' in klass.__pattern__: + if hasattr(klass, "__pattern__") and isinstance(klass.__pattern__, basestring) and '://' in klass.__pattern__: regexp = r"%s|%s" % (klass.__pattern__, regexp) self.logDebug("Regexp: %s" % regexp) @@ -181,4 +181,4 @@ class MultiHoster(Hook): if "new_name" in hdict and hdict['new_name'] == self.__name__: self.logDebug("Unload MultiHoster", pyfile.pluginname, hdict) self.unloadHoster(pyfile.pluginname) - pyfile.setStatus("queued")
\ No newline at end of file + pyfile.setStatus("queued") |