mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Extract fb2 files from zip container when adding to calibre. Can be disables by disabling the Archive Extract file type plugin. Fixes #6739 (Adding a zip file that contains an fb2 file)
This commit is contained in:
parent
31db5a16dd
commit
3c257cdb56
Binary file not shown.
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 13 KiB |
@ -70,7 +70,7 @@ class ArchiveExtract(FileTypePlugin):
|
|||||||
fname = fnames[0]
|
fname = fnames[0]
|
||||||
ext = os.path.splitext(fname)[1][1:]
|
ext = os.path.splitext(fname)[1][1:]
|
||||||
if ext.lower() not in ('lit', 'epub', 'mobi', 'prc', 'rtf', 'pdf',
|
if ext.lower() not in ('lit', 'epub', 'mobi', 'prc', 'rtf', 'pdf',
|
||||||
'mp3', 'pdb', 'azw', 'azw1'):
|
'mp3', 'pdb', 'azw', 'azw1', 'fb2'):
|
||||||
return archive
|
return archive
|
||||||
|
|
||||||
of = self.temporary_file('_archive_extract.'+ext)
|
of = self.temporary_file('_archive_extract.'+ext)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user