From dbcec9627ab27c0493fd277b93f08504a90cefe6 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 1 Nov 2014 18:48:07 +0100 Subject: [XFileSharingPro] Tiny code cosmetics --- module/plugins/hooks/XFileSharingPro.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins') 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 -- cgit v1.2.3