This commit is contained in:
Kovid Goyal
2018-05-18 18:52:43 +05:30
+2
View File
@@ -44,6 +44,8 @@ def book(db, notify_changes, is_remote, args):
else:
path = data
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:
mi = get_metadata(stream, stream_type=fmt, use_libprs_metadata=True)
if not mi.title: