[Enhancement] support 7zip archives

Bug #2036266 reported by Keith Davies
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

calibre has some useful behavior when import certain archive files (ZIP and RAR among them; I haven't checked other formats). Lately I've been storing a fair number of 7zip (.7Z) files. It would be a grand convenience to have similar behavior applied to uploaded 7zip files.

I have a workaround: unpack the 7z, repack as ZIP or RAR, load those instead... but this would be much more convenient to me.

(running calibre v6.26 on Windows 10)

Revision history for this message
Kovid Goyal (kovid) wrote :

This is not worth the effort for me personally. If some one else wants to implement it, I will be happy to supply any needed guidance. If so, re-open the ticket and we can discuss it.

Changed in calibre:
status: New → Won't Fix
Revision history for this message
Keith Davies (kjdavies) wrote :

@kovid fair enough. If I knew more python I might take a run at it... but I figured it was worth asking. Thanks for looking at it.

Revision history for this message
Kovid Goyal (kovid) wrote :

No harm in asking. Actually given that calibre already includes py7zr
this should not be hard to implement. If you are willing to do the
testing I can add basic support. Attach a couple of sample 7z archves
and I will take a look.

Revision history for this message
Keith Davies (kjdavies) wrote :

First sample, 7z file containing single PDF

Revision history for this message
Keith Davies (kjdavies) wrote :

Second sample, 7z file containing five PNG files.

Revision history for this message
Keith Davies (kjdavies) wrote :

Two 7z files attached, thanks @kovid

Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: Won't Fix → Fix Released
Revision history for this message
Keith Davies (kjdavies) wrote :

Cool! Thanks @kovid, I'll be sure to take a look as soon as it's out.

Revision history for this message
Kovid Goyal (kovid) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.