Fix identifiers not always being merged correctly when merging books. Fixes #2071044 [Merging books: Identifiers fail to merge](https://bugs.launchpad.net/calibre/+bug/2071044)

This commit is contained in:
Kovid Goyal 2024-06-27 18:57:36 +05:30
parent 8e3a2debff
commit ff3ebef5db
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -3398,7 +3398,7 @@ class Cache:
if is_null_date(dest_mi.pubdate) and not is_null_date(src_mi.pubdate): if is_null_date(dest_mi.pubdate) and not is_null_date(src_mi.pubdate):
dest_mi.pubdate = src_mi.pubdate dest_mi.pubdate = src_mi.pubdate
src_identifiers = self.field_for('identifier', src_id) or {} src_identifiers = (src_mi.get_identifiers() or {}).copy()
src_identifiers.update(merged_identifiers) src_identifiers.update(merged_identifiers)
merged_identifiers = src_identifiers.copy() merged_identifiers = src_identifiers.copy()