summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/MultiHoster.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py
index d50df3943..5e9a03fee 100644
--- a/module/plugins/internal/MultiHoster.py
+++ b/module/plugins/internal/MultiHoster.py
@@ -73,7 +73,10 @@ class MultiHoster(Hook):
self.logDebug("New Hosters: %s" % ", ".join(sorted(new_supported)))
# create new regexp
- regexp = r".*(%s).*" % "|".join([klass.__pattern__] + [x.replace(".", "\\.") for x in new_supported])
+ if not klass.__pattern__ or klass.pattern == "":
+ regexp = r".*(%s).*" % "|".join([x.replace(".", "\\.") for x in new_supported])
+ else:
+ regexp = r".*(%s).*" % "|".join([klass.__pattern__] + [x.replace(".", "\\.") for x in new_supported])
dict = self.core.pluginManager.hosterPlugins[self.__name__]
dict["pattern"] = regexp