diff options
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") | 
