summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-01 18:48:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-01 18:48:07 +0100
commitdbcec9627ab27c0493fd277b93f08504a90cefe6 (patch)
treeb013932fdecba836100157abd54dac977370b7f3 /module/plugins/hooks
parent[Crypter] Fix config handling (diff)
downloadpyload-dbcec9627ab27c0493fd277b93f08504a90cefe6.tar.xz
[XFileSharingPro] Tiny code cosmetics
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/XFileSharingPro.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py
index 3c35adedb..552730f5d 100644
--- a/module/plugins/hooks/XFileSharingPro.py
+++ b/module/plugins/hooks/XFileSharingPro.py
@@ -53,6 +53,7 @@ class XFileSharingPro(Hook):
every_plugin = self.getConfig('every_%s' % type)
if every_plugin:
+ self.logInfo("Handling all %ss: %s" % (len(plugin_list), type, match_list.replace('|', ', ')))
regexp = self.regex[type][0]
else:
s = self.getConfig('%s_list' % type).replace('\\', '').replace('|', ',').replace(';', ',').lower()
@@ -68,9 +69,9 @@ class XFileSharingPro(Hook):
return
match_list = '|'.join(sorted(plugin_list))
- self.logInfo("Handling %d %ss: %s" % (len(plugin_list), type, match_list.replace('|', ', ')))
+ self.logInfo("Handling %s %ss" % (u'\u221E', type))
- regexp = self.regex[type][1] % match_list #.replace('.', '\.')
+ regexp = self.regex[type][1] % match_list.replace('.', '\.')
dict = self.core.pluginManager.plugins[type][plugin]
dict['pattern'] = regexp