Update ftype when reading metadata from cbz sub-file

This commit is contained in:
Kovid Goyal 2022-03-30 15:30:47 +05:30
parent 3b145786c9
commit 9a7935b7f9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -114,6 +114,7 @@ class ComicMetadataReader(MetadataReaderPlugin):
fcn = zf.open('comics.txt').read().decode('utf-8').splitlines()[0]
oname = getattr(stream, 'name', None)
stream = zf.open(fcn)
ftype = fcn.split('.')[-1].lower()
if oname:
stream.name = oname
if hasattr(stream, 'seek') and hasattr(stream, 'tell'):