mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fixed regression with tags used for catalog prefixes
This commit is contained in:
parent
4e49cb078a
commit
b306cfb3ae
@ -582,7 +582,10 @@ class CatalogBuilder(object):
|
|||||||
if rule['field'].lower() == 'tags':
|
if rule['field'].lower() == 'tags':
|
||||||
if rule['pattern'].lower() in map(unicode.lower,record['tags']):
|
if rule['pattern'].lower() in map(unicode.lower,record['tags']):
|
||||||
if self.opts.verbose:
|
if self.opts.verbose:
|
||||||
_log_prefix_rule_match_info(rule, record, rule['pattern'])
|
self.opts.log.info(" %s '%s' by %s (%s: Tags includes '%s')" %
|
||||||
|
(rule['prefix'],record['title'],
|
||||||
|
record['authors'][0], rule['name'],
|
||||||
|
rule['pattern']))
|
||||||
return rule['prefix']
|
return rule['prefix']
|
||||||
|
|
||||||
# Regex match for custom field
|
# Regex match for custom field
|
||||||
|
Loading…
x
Reference in New Issue
Block a user