mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-19 00:14:07 +01: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
1 changed files with 2 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ def _add(self, filename, gui, add_to_lib, tags):
|
|||
raise Exception(_('Not a support ebook format.'))
|
||||
|
||||
from calibre.ebooks.metadata.meta import get_metadata
|
||||
with open(filename) as f:
|
||||
mi = get_metadata(f, ext)
|
||||
with open(filename, 'rb') as f:
|
||||
mi = get_metadata(f, ext, force_read_metadata=True)
|
||||
mi.tags.extend(tags)
|
||||
|
||||
id = gui.library_view.model().db.create_book_entry(mi)
|
||||
|
|
|
|||
Loading…
Reference in a new issue