mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Don't turn tags surrounded by [] into collections
This commit is contained in:
parent
b97141b208
commit
b910e737c6
@ -124,6 +124,9 @@ class BookList(_BookList):
|
||||
elif isinstance(val, unicode):
|
||||
val = [val]
|
||||
for category in val:
|
||||
if attr == 'tags' and len(category) > 1 and \
|
||||
category[0] == '[' and category[-1] == ']':
|
||||
continue
|
||||
if category not in collections:
|
||||
collections[category] = []
|
||||
if book not in collections[category]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user