mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-28 22:24:26 +01: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
1 changed files with 2 additions and 1 deletions
|
|
@ -159,7 +159,8 @@ def _add(self, job):
|
|||
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…
Reference in a new issue