04-07-2019, 07:36 AM | #1 |
Zealot
Posts: 128
Karma: 842196
Join Date: Feb 2019
Device: none
|
Feature request: CBR support
I would like to request to CBR support, I could not find any topic on this, but then again that could be my search skills also
My current workaround: (depends on 7zip and unrar) This is a recursive version: **EVERYTHING ending on .cbr will be converted to cbz** sudo apt install p7zip-full unrar Conversion: Code:
find -type f -iname '*.cbr' -exec sh -c 't="`mktemp -d`";f="{}";unrar x -y "$f" "$t" && 7z a -r -sdel -tzip -mx=9 "${f%r}z" "$t/*";rmdir "$t"' \; Code:
find -type f -iname '*.cbr' -exec sh -c 't="`mktemp -d`";f="{}";unrar x -y "$f" "$t" && 7z a -r -sdel -tzip -mx=9 "${f%r}z" "$t/*" && rm "$f";rmdir "$t"' \; Last edited by BloodRagg; 04-07-2019 at 08:00 AM. |
04-07-2019, 11:49 AM | #2 |
Wizard
Posts: 1,613
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
There's an issue about it: https://github.com/koreader/koreader/issues/1517
|
Advert | |
|
04-08-2019, 10:07 AM | #3 |
Zealot
Posts: 128
Karma: 842196
Join Date: Feb 2019
Device: none
|
Could a workaround be added in the file browser? run you custom script against the current file.
It must still show the cbr files , now they are hidden. |
04-08-2019, 01:20 PM | #4 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Nothing ships unrar, IIRC.
And it'd be fairly IO/CPU intensive, with minimal UI callback possible (think OTA updates), which pretty much punts that off to the "gross hack" category . That's a task much better left to the other side of the equation (i.e., do it before/during sending the file to the device instead). Last edited by NiLuJe; 04-08-2019 at 01:23 PM. |
04-21-2019, 01:52 PM | #5 | |
Zealot
Posts: 128
Karma: 842196
Join Date: Feb 2019
Device: none
|
Quote:
Source code of unrar is open, but im guessing this uses a library for direct handling of zip files ? So you would need something similar for rar files ? Is some kind of a stub possible that uses the unrar executable ? |
|
Advert | |
|
04-21-2019, 02:31 PM | #6 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Huh. I wasn't expecting that .
I'd go with libarchive, it has a great API, and it just recently picked up RAR5 support. |
04-21-2019, 03:07 PM | #7 | |
Wizard
Posts: 1,613
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
However, cbz is handled by MuPDF, not crengine. |
|
05-01-2019, 11:24 AM | #8 | |
Wizard
Posts: 2,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
The pbimageviewer code I worked on for PocketBook devices unpacks single files. The source code for that is available if you want an idea of how much work it would be to implement. |
|
05-01-2019, 12:12 PM | #9 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'm not familiar with the unrar API (but I do know it's there ), but you can certainly skip through the archive's content without unpacking anything with libarchive .
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
new feature request - paste image support | dhdurgee | Sigil | 16 | 11-22-2015 06:29 AM |
Feature Request: ZIM Conversion Support | kichigai | Conversion | 1 | 07-24-2011 08:53 PM |
Feature Request - ability to send CBR/CBZ to ereader device | BakaNeko59 | Library Management | 4 | 06-20-2011 02:59 PM |
feature request - OPDS support | readx | EPUBReader | 4 | 01-13-2010 01:03 PM |
feature request: support for iliad on OS X | petteri | Calibre | 1 | 12-30-2009 08:23 AM |