mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Get Books: Always read metadata from the file contents, ignoring the setting in Preferences->Adding books
This commit is contained in:
parent
c8011b48c7
commit
ae02ce25be
@ -66,8 +66,8 @@ class EbookDownload(object):
|
|||||||
raise Exception(_('Not a support ebook format.'))
|
raise Exception(_('Not a support ebook format.'))
|
||||||
|
|
||||||
from calibre.ebooks.metadata.meta import get_metadata
|
from calibre.ebooks.metadata.meta import get_metadata
|
||||||
with open(filename) as f:
|
with open(filename, 'rb') as f:
|
||||||
mi = get_metadata(f, ext)
|
mi = get_metadata(f, ext, force_read_metadata=True)
|
||||||
mi.tags.extend(tags)
|
mi.tags.extend(tags)
|
||||||
|
|
||||||
id = gui.library_view.model().db.create_book_entry(mi)
|
id = gui.library_view.model().db.create_book_entry(mi)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user