mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:43:39 +02:00
...
This commit is contained in:
parent
641e626322
commit
9dfc49aeb5
1 changed files with 2 additions and 2 deletions
|
|
@ -488,8 +488,8 @@ def do_one_apply(self):
|
|||
if self._am_merge_tags:
|
||||
old_tags = db.tags(i, index_is_id=True)
|
||||
if old_tags:
|
||||
tags = old_tags.split(',') + (mi.tags if mi.tags else
|
||||
[])
|
||||
tags = [x.strip() for x in old_tags.split(',')] + (
|
||||
mi.tags if mi.tags else [])
|
||||
mi.tags = list(set(tags))
|
||||
db.set_metadata(i, mi, commit=False, set_title=set_title,
|
||||
set_authors=set_authors, notify=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue