C

comic_cleaner

Tidy up your comic library

ComicCleaner

Scanning your own comic collection for safekeeping is fun. Corrupted or incomplete archives are not! comicCleaner analyzes your comic library and finds all the broken and incomplete {cbr,cbz} files.

How it works:

When ComicCleaner is run without the --clean option it will simply scan your library and report broken comics. Comics that have no or too few pages will also be reported as they indicate an incomplete scan.

When run with the --clean option Comiccleaner will start the execution by scanning the directory indicated by banned_files_dir and calculate the checksums of the files it contains. An example of a page that could be remove this way is a personal cover you added to your scans and no longer want.

ComicCleaner then scans your library again and when it encounters one of these banned files it will remove it from the comic. The new comic will be saved using the cbz format and the old comic will be backed up with a .bak extension.

Usage:

./comicCleaner.py [-h] [--clean] [--banned_files_dir BANNED_FILES_DIR] [--dry_run] library_path

library_path
        The location of your library
-h, --help
        Show this help message and exit
--clean
        Remove banned files from the comics
--banned_files_dir BANNED_FILES_DIR
        The directory contaning the banned files.
--dry_run
        Display information only. No file will be modified

Dependencies:

ComicCleaner uses rarfile.
You can install it using : sudo pip install rarfile

###Disclaimer : ComicCleaner is for use with comics you scanned yourself or acquired by legal means. I do not condone piracy in any way.