Go to file
2023-10-23 19:57:39 -07:00
cmd Initially working version 2023-10-22 20:57:43 -07:00
img Update README 2023-10-23 19:57:39 -07:00
arch.go Initially working version 2023-10-22 20:57:43 -07:00
file.go Initially working version 2023-10-22 20:57:43 -07:00
go.mod Initial commit 2023-10-19 17:56:27 -07:00
media.go Initially working version 2023-10-22 20:57:43 -07:00
README.md Update README 2023-10-23 19:57:39 -07:00

Mex

Mex is a tool for repacking manga archives into a sane directory structure for consumptions by viewers like Komga, Kavita, and many others.

Requirements

You must have both 7za / 7z and unrar installed on your system and included in your system PATH.

Features

  • Process most compressed formats, including nested archives 🌮
  • Detect best quality volumes in the presence of duplicates 🌶️
  • Rename volumes and pages using templates for consistency 🫔
  • Exclude any irrelevant garbage files present in your archives 🥑
  • Output loose images, CBZ archives, or a combination of both 🌯

Usage

To process an archive just pass it on the command line to Mex:

mex my_manga_archive.rar

Additional options can be viewed by running with the -help flag:

Usage: mex <input_path> [<output_dir>]
  -label-book string
    	book name template (default "{{.Name}}")
  -label-page string
    	page name template (default "page_{{.Index}}{{.Ext}}")
  -label-volume string
    	volume name template (default "vol_{{.Index}}")
  -workers int
    	number of simultaneous workers (default 4)
  -zip-book
    	compress book as a cbz archive
  -zip-volume
    	compress volumes as cbz archives (default true)
Templates:
  {{.Index}} - index of current volume or page
  {{.Name}} - original filename and extension
  {{.Ext}} - original extension only