mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit metadata dialog: When runnning download metadata do not isert duplicate tags into the list of tags
This commit is contained in:
parent
d8d8ce7e62
commit
7e63bd6da3
@ -357,7 +357,9 @@ class MetadataSingleDialogBase(ResizableDialog):
|
||||
old_tags = self.tags.current_val
|
||||
tags = mi.tags if mi.tags else []
|
||||
if old_tags and merge_tags:
|
||||
tags += old_tags
|
||||
ltags, lotags = {t.lower() for t in tags}, {t.lower() for t in
|
||||
old_tags}
|
||||
tags = [t for t in tags if t.lower() in ltags-lotags] + old_tags
|
||||
self.tags.current_val = tags
|
||||
if not mi.is_null('identifiers'):
|
||||
current = self.identifiers.current_val
|
||||
|
Loading…
x
Reference in New Issue
Block a user