/comic_cleaner

Tidy up your comic library

Primary LanguagePythonThe UnlicenseUnlicense

comic_cleaner

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 comic_cleaner is run without the --banned_files_dir 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 --banned_files_dir option Comiccleaner will start the execution by scanning the directory and calculating the checksums of the files it contains. An example of a page that could be removed this way is a personal cover you added to your scans and no longer want.

comic_cleaner 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] [--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
--banned_files_dir BANNED_FILES_DIR
        The directory contaning the banned files.
--dry_run
        Display information only. No file will be modified

Dependencies:

comic_cleaner uses rarfile.

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