diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-12 21:58:37 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-12 21:58:37 +0200 |
commit | fdabb02b229f52fd3f98efb678df278eee2a28b6 (patch) | |
tree | 6ff1d8a316040e37a1d4667c48c50525c25c0c22 /pyload/plugins/addons | |
parent | updated locale, upload task (diff) | |
download | pyload-fdabb02b229f52fd3f98efb678df278eee2a28b6.tar.xz |
adapted premiumize me
Diffstat (limited to 'pyload/plugins/addons')
-rw-r--r-- | pyload/plugins/addons/MultiHoster.py | 7 |
1 files changed, 6 insertions, 1 deletions
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") |