Change how downloads are added to the library to ensure FileType plugins are run over the additions.

This commit is contained in:
John Schember 2011-03-06 10:25:57 -05:00
parent 392be10fa9
commit 273ddfa280

View File

@ -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