summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/addons
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-12 21:58:37 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-12 21:58:37 +0200
commitfdabb02b229f52fd3f98efb678df278eee2a28b6 (patch)
tree6ff1d8a316040e37a1d4667c48c50525c25c0c22 /pyload/plugins/addons
parentupdated locale, upload task (diff)
downloadpyload-fdabb02b229f52fd3f98efb678df278eee2a28b6.tar.xz
adapted premiumize me
Diffstat (limited to 'pyload/plugins/addons')
-rw-r--r--pyload/plugins/addons/MultiHoster.py7
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")