![]() |
#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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
There's an issue about it: https://github.com/koreader/koreader/issues/1517
|
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#4 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
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. |
![]() |
![]() |
![]() |
#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 ? ![]() |
|
![]() |
![]() |
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
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. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
However, cbz is handled by MuPDF, not crengine. |
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,054
Karma: 18821071
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. |
|
![]() |
![]() |
![]() |
#9 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
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
![]() ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |