mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1885 (Import plugin does not run when Adding from Directories)
This commit is contained in:
parent
b25a0d1fec
commit
d8b443fd26
@ -1217,8 +1217,7 @@ class LibraryDatabase2(LibraryDatabase):
|
||||
ext = os.path.splitext(path)[1][1:].lower()
|
||||
if ext == 'opf':
|
||||
continue
|
||||
stream = open(path, 'rb')
|
||||
self.add_format(id, ext, stream, index_is_id=True)
|
||||
self.add_format_with_hooks(id, ext, path, index_is_id=True)
|
||||
self.conn.commit()
|
||||
self.data.refresh_ids(self.conn, [id]) # Needed to update format list and size
|
||||
if notify:
|
||||
|
Loading…
x
Reference in New Issue
Block a user