gotson / comics-utils

Scripts to manage my digital comics collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

comics-utils

Scripts to manage my digital comics collection.

cbz.py

CBZ utility can be used on both archives, to cleanup existing cbz/cbr/cb7, and folders, to create a new cbz archive. Folders are processed recursively to find folders containing files, but archives inside a processed folder won't be cleaned up. Options include:

  • preserving OSX tags (for archives only)
  • flatten the directory structure (same as -j option on zip)
  • rename files using natural sort

Thanks to The Unarchiver, you can also process PDF files for cleanup !

Requires

Usage

usage: cbz.py [-h] [-t] [-r] [-f] [-d DESTINATION] infiles [infiles ...]

CBZ utility

positional arguments:
  infiles

optional arguments:
  -h, --help            show this help message and exit
  -t, --tags            Preserve OSX tags (uses
                        https://github.com/jdberry/tag)
  -r, --rename          Rename files using natural sort
  -f, --flatten         Flatten archive by removing folder structure
  -d DESTINATION, --destination DESTINATION
                        Destination for processed files. If unspecified
                        working directory is used instead

OSX Automator

You can hook up the scripts using Automator to have a right-click action: alt tag

You can also configure it as a folder action, to automatically perform post-processing for instance: alt tag

sync-folder.py

Use OSX tags to create a replica of your directory structure for easy synchronization with any third party tool or cloud provider. Folders have to be tagged sync (works on parent folders as well). Files tagged read are ignored.

You have to edit the source code to change the source and destination folders.

Requires

Usage

> python sync-folder.py

About

Scripts to manage my digital comics collection


Languages

Language:Python 100.0%