Skip to content

sizzleweet/cbr2cbzPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

This script will determine the correct extension for your comic book files (.cbr or .cbz) and rename them accordingly.

It will then convert all cbr's to cbz and log any failed cbr's to a "cbr2cbzlog[datetime].txt" file in the directory you run the script from.

FullOutput will show a the full output of the script and unrar actions.

Requirements

🎉 TRiD has a weird issue with the "LANG=" value being set in linux. From what I can tell if you set LANG=/usr/lib/locale/en_US (or whatever your LANG value should be) it will work. It just needs to be a complete path.

Requires Unrar and Powershell to be installed.

unrar download -- https://www.rarlab.com/rar_add.htm

powershell linux -- https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6

Files And explanations

Trid -- Linux executable of trid (http://mark0.net/soft-trid-e.html)

Trid.exe -- Windows executable of trid (http://mark0.net/soft-trid-e.html)

cbx.trd -- cbr/cbz definition file for trid

To Run

Navigate to where you have your script.

Windows: powershell .\cbr2cbz.ps1

Linux: pwsh ./cbr2cbz.ps1

set paths to the required executables (unrar will be found automatically if it has a env variable assigned to it).

For TRiD set absolute patht to executable e.g /path/to/trid (linux) or /path/to/trid.exe (windows)

For comic directory make sure that you keep in mind this is recursive so all folders under the folder you enter will also be parsed.

About

cbr2cbz P$

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published