mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change how downloads are added to the library to ensure FileType plugins are run over the additions.
This commit is contained in:
parent
392be10fa9
commit
273ddfa280
@ -159,7 +159,8 @@ class StoreDownloader(Thread):
|
||||
mi = get_metadata(f, ext)
|
||||
mi.tags.extend(tags)
|
||||
|
||||
job.db.add_books([job.tmp_file_name], [ext], [mi])
|
||||
id = job.db.create_book_entry(mi)
|
||||
job.db.add_format_with_hooks(id, ext.upper(), job.tmp_file_name, index_is_id=True)
|
||||
|
||||
def _save_as(self, job):
|
||||
url, save_loc, add_to_lib, tags = job.args
|
||||
|
Loading…
x
Reference in New Issue
Block a user