mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
641e626322
commit
9dfc49aeb5
@ -488,8 +488,8 @@ class EditMetadataAction(InterfaceAction):
|
|||||||
if self._am_merge_tags:
|
if self._am_merge_tags:
|
||||||
old_tags = db.tags(i, index_is_id=True)
|
old_tags = db.tags(i, index_is_id=True)
|
||||||
if old_tags:
|
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))
|
mi.tags = list(set(tags))
|
||||||
db.set_metadata(i, mi, commit=False, set_title=set_title,
|
db.set_metadata(i, mi, commit=False, set_title=set_title,
|
||||||
set_authors=set_authors, notify=False)
|
set_authors=set_authors, notify=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user