mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Merge branch 'master' of https://github.com/j-howell/calibre
This commit is contained in:
commit
1ebbd21264
@ -44,6 +44,8 @@ def book(db, notify_changes, is_remote, args):
|
|||||||
else:
|
else:
|
||||||
path = data
|
path = data
|
||||||
path = run_import_plugins([path])[0]
|
path = run_import_plugins([path])[0]
|
||||||
|
fmt = os.path.splitext(path)[1]
|
||||||
|
fmt = fmt[1:] if fmt else None
|
||||||
with lopen(path, 'rb') as stream:
|
with lopen(path, 'rb') as stream:
|
||||||
mi = get_metadata(stream, stream_type=fmt, use_libprs_metadata=True)
|
mi = get_metadata(stream, stream_type=fmt, use_libprs_metadata=True)
|
||||||
if not mi.title:
|
if not mi.title:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user