mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c049052dc9
commit
9bf5fb2d37
@ -3095,7 +3095,7 @@ def import_library(library_key, importer, library_path, progress=None, abort=Non
|
|||||||
cache.fields['formats'].table.update_fmt(book_id, fmt, fname, size, cache.backend)
|
cache.fields['formats'].table.update_fmt(book_id, fmt, fname, size, cache.backend)
|
||||||
stream.close()
|
stream.close()
|
||||||
for relpath, efkey in extra_files.get(book_id, {}).items():
|
for relpath, efkey in extra_files.get(book_id, {}).items():
|
||||||
stream = importer.start_file(efkey, _('{0} for {1}').format(relpath, title))
|
stream = importer.start_file(efkey, _('Extra file {0} for book {1}').format(relpath, title))
|
||||||
path = cache._field_for('path', book_id).replace('/', os.sep)
|
path = cache._field_for('path', book_id).replace('/', os.sep)
|
||||||
cache.backend.add_extra_file(relpath, stream, path)
|
cache.backend.add_extra_file(relpath, stream, path)
|
||||||
cache.dump_metadata({book_id})
|
cache.dump_metadata({book_id})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user