|lotus dc49c73ba1 fixed dep check for trash-cli, addressed shellcheck issues.||2 weeks ago|
|LICENSE.md||3 months ago|
|README.md||2 weeks ago|
|cbr-convert.1||3 months ago|
|cbr-convert.sh||2 weeks ago|
|makefile||2 weeks ago|
|runner-cbr.sh||2 weeks ago|
The .cbr (comic book rar) file format is proprietary and doesn't play well with all comic book readers. This script will recurse a directory and convert each .cbr file found to .cbz. We divide up the work by directory and use gnu parallel to execute on each folder. After the work is complete we cleanup the old cbr files and move them to the trash folder. This tool is meant to be a one-shot to convert your whole collection. Spaces in directories or filenames are anticipated and OK 👍.
git clone https://git.zerohack.xyz/lotus/cbr-convert.git cd cbr-convert make install #(as root) # to uninstall make uninstall #(as root)
In order to use this tool, you will need these things installed:
There are no requirements to use a specific shell, but I have not tested on all of them, only ksh and bash. The above dependencies should be available in your OS's package manager (apt, pkg, portage, dnf, etc.)
cbr-convert ./MyComicsDir # convert all cbr files found in this directory cbr-convert -j 8 ./Deadpool # convert using 8 threads cbr-convert -h # show this help message cbr-convert -v # show version !!! - After conversion .cbr files are moved to trash - !!! (Note that this will recurse down into each subdirectory)
Dataset = 22GB CPU = 4th Gen i7 Quad Core Storage = 250 Sata III SSD -j 1 (sequential) -j 8 (multithreaded) real 18m34.91s real 5m49.69s Conclusion: While this tool defaults to 2 jobs, if you have more cores available, specify a higher -j value.
This project is licensed under the ISC license. (See LICENSE.md)