mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fe536e6ab8
commit
c11a2b416e
@ -3179,6 +3179,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
|
|
||||||
def create_book_entry(self, mi, cover=None, add_duplicates=True,
|
def create_book_entry(self, mi, cover=None, add_duplicates=True,
|
||||||
force_id=None):
|
force_id=None):
|
||||||
|
if mi.tags:
|
||||||
|
mi.tags = list(mi.tags)
|
||||||
self._add_newbook_tag(mi)
|
self._add_newbook_tag(mi)
|
||||||
if not add_duplicates and self.has_book(mi):
|
if not add_duplicates and self.has_book(mi):
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user