From fdabb02b229f52fd3f98efb678df278eee2a28b6 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 12 Jul 2013 21:58:37 +0200 Subject: adapted premiumize me --- pyload/plugins/addons/MultiHoster.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pyload/plugins/addons') diff --git a/pyload/plugins/addons/MultiHoster.py b/pyload/plugins/addons/MultiHoster.py index 7ff6b834e..9eb323b2d 100644 --- a/pyload/plugins/addons/MultiHoster.py +++ b/pyload/plugins/addons/MultiHoster.py @@ -57,7 +57,12 @@ class MultiHoster(Addon): account.logDebug("New Hosters: %s" % ", ".join(sorted(new_supported))) # create new regexp - regexp = r".*(%s).*" % "|".join([klass.__pattern__] + [x.replace(".", "\\.") for x in new_supported]) + patterns = [x.replace(".", "\\.") for x in new_supported] + + if klass.__pattern__: + patterns.append(klass.__pattern__) + + regexp = r".*(%s).*" % "|".join(patterns) # recreate plugin tuple for new regexp hoster = self.core.pluginManager.getPlugins("hoster") -- cgit v1.2.3