Go to file
Alex Yatskov 063839d80d Update import path 2023-12-30 19:13:16 -08:00
img Update README 2023-10-23 19:57:39 -07:00
mex Update import path 2023-12-30 19:13:16 -08:00
.gitignore Update import path 2023-12-30 19:13:16 -08:00
LICENSE Add license and makefile 2023-10-23 20:12:55 -07:00
README.md Update README 2023-10-23 19:57:39 -07:00
arch.go Print 7za/unrar output on failure 2023-11-04 19:11:34 -07:00
file.go Initially working version 2023-10-22 20:57:43 -07:00
go.mod Update import path 2023-12-30 19:13:16 -08:00
media.go Bugfixes 2023-11-03 19:25:26 -07:00
regexp.txt Update regex 2023-11-03 19:58:39 -07:00

README.md

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