mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
a4f6d6d19e
commit
178364aa4e
@ -861,7 +861,7 @@ class FormatsManager(QWidget):
|
|||||||
if fmt.path is None:
|
if fmt.path is None:
|
||||||
stream = db.format(id_, ext, as_file=True, index_is_id=True)
|
stream = db.format(id_, ext, as_file=True, index_is_id=True)
|
||||||
else:
|
else:
|
||||||
stream = open(fmt.path, 'r+b')
|
stream = open(fmt.path, 'rb')
|
||||||
try:
|
try:
|
||||||
with stream:
|
with stream:
|
||||||
mi = get_metadata(stream, ext)
|
mi = get_metadata(stream, ext)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user