mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix a regression in 0.7.54 that broke reading covers/metadata from cbz files. Fixes #756892 (no cover when adding CBZ)
This commit is contained in:
parent
0e8f01a545
commit
9c8456b275
@ -173,7 +173,7 @@ class ComicMetadataReader(MetadataReaderPlugin):
|
|||||||
stream.seek(pos)
|
stream.seek(pos)
|
||||||
if id_ == b'Rar':
|
if id_ == b'Rar':
|
||||||
ftype = 'cbr'
|
ftype = 'cbr'
|
||||||
elif id.startswith(b'PK'):
|
elif id_.startswith(b'PK'):
|
||||||
ftype = 'cbz'
|
ftype = 'cbz'
|
||||||
if ftype == 'cbr':
|
if ftype == 'cbr':
|
||||||
from calibre.libunrar import extract_first_alphabetically as extract_first
|
from calibre.libunrar import extract_first_alphabetically as extract_first
|
||||||
|
Loading…
x
Reference in New Issue
Block a user