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:
Kovid Goyal 2011-04-10 15:47:13 -06:00
parent 0e8f01a545
commit 9c8456b275

View File

@ -173,7 +173,7 @@ class ComicMetadataReader(MetadataReaderPlugin):
stream.seek(pos)
if id_ == b'Rar':
ftype = 'cbr'
elif id.startswith(b'PK'):
elif id_.startswith(b'PK'):
ftype = 'cbz'
if ftype == 'cbr':
from calibre.libunrar import extract_first_alphabetically as extract_first