diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-01 18:48:07 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-01 18:48:07 +0100 |
commit | dbcec9627ab27c0493fd277b93f08504a90cefe6 (patch) | |
tree | b013932fdecba836100157abd54dac977370b7f3 /module/plugins/hooks | |
parent | [Crypter] Fix config handling (diff) | |
download | pyload-dbcec9627ab27c0493fd277b93f08504a90cefe6.tar.xz |
[XFileSharingPro] Tiny code cosmetics
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/XFileSharingPro.py | 5 |
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 |