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