Skip to content

A tool to add a title page to CBZ comic book archives if it is missing.

License

Notifications You must be signed in to change notification settings

recoskyler/comibat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComiBat

PyPI - Python Version

Buy Me a Coffee at ko-fi.com

A tool to add a title page to CBZ comic book archives if it doesn't already exist. It uses the first image file in the archive as the title page, and also adds a Pages node with all the other pages to the ComicInfo.xml file during the process.

This tool works only with CBZ files, as CBR and CB7 files are not supported and proprietary.

Requirements

  • Python 3.5 or higher
  • pip

Installation

ComiBat is available on PyPI. To install it, run the following command:

pip3 install comibat

Usage

To add a title page to a CBZ file, run the following command:

comibat <path/to/cbz/file>

This will add a title page to the CBZ file, and save it as a new CBZ file with the same name but with a (FIXED) suffix.

If you do not specify any files, ComiBat will look for CBZ files in the current directory (not recursive).

Examples

Add a title page to a single CBZ file

comibat 'Maou-jou de Oyasumi Ch.310.cbz'

Add a title page to all CBZ files in the current directory

comibat

Add a title page to all CBZ files in the current directory recursively

comibat -r

Add a title page to all CBZ files in the current directory and output to a different directory

comibat -o 'C:\Users\User\Documents\Comic Books'

Add a title page to all CBZ files in the current directory recursively

comibat -r

Add a title page to all CBZ files in the current directory and output to a different directory

comibat -o 'C:\Users\User\Documents\Comic Books'

Add a title page to specific CBZ files using wildcards

comibat 'Maou-jou de Oyasumi Ch.*.cbz'

in a specific directory

comibat '/home/user/comics/*.cbz'

License

ComiBat is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.

About

By recoskyler - 2024