mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
EPUB/MOBI Catalogs: Fix exclusion by tag not working for tags that have spaces in them
This commit is contained in:
parent
c1bd466d07
commit
469b633e7e
@ -1021,7 +1021,7 @@ class CatalogBuilder(object):
|
||||
if self.excluded_tags:
|
||||
search_terms = []
|
||||
for tag in self.excluded_tags:
|
||||
search_terms.append("tag:=%s" % tag)
|
||||
search_terms.append('tags:"=%s"' % tag)
|
||||
search_phrase = "not (%s)" % " or ".join(search_terms)
|
||||
|
||||
# If a list of ids are provided, don't use search_text
|
||||
|
Loading…
x
Reference in New Issue
Block a user