mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update ftype when reading metadata from cbz sub-file
This commit is contained in:
parent
3b145786c9
commit
9a7935b7f9
@ -114,6 +114,7 @@ class ComicMetadataReader(MetadataReaderPlugin):
|
|||||||
fcn = zf.open('comics.txt').read().decode('utf-8').splitlines()[0]
|
fcn = zf.open('comics.txt').read().decode('utf-8').splitlines()[0]
|
||||||
oname = getattr(stream, 'name', None)
|
oname = getattr(stream, 'name', None)
|
||||||
stream = zf.open(fcn)
|
stream = zf.open(fcn)
|
||||||
|
ftype = fcn.split('.')[-1].lower()
|
||||||
if oname:
|
if oname:
|
||||||
stream.name = oname
|
stream.name = oname
|
||||||
if hasattr(stream, 'seek') and hasattr(stream, 'tell'):
|
if hasattr(stream, 'seek') and hasattr(stream, 'tell'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user