An open API service indexing awesome lists of open source software.

https://github.com/gotson/comics-utils

Scripts to manage my digital comics collection
https://github.com/gotson/comics-utils

Last synced: 9 months ago
JSON representation

Scripts to manage my digital comics collection

Awesome Lists containing this project

README

          

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**
* Python 2.7+
* [jdberry/tag](https://github.com/jdberry/tag) (if using the --tags option) (`brew install tag`)
* [natsort](https://pypi.python.org/pypi/natsort) (`pip install natsort`)
* [The Unarchiver command line tools](http://unarchiver.c3.cx/commandline) (`brew install unar`)

**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](https://raw.githubusercontent.com/gotson/comics-utils/master/wiki/cbz-as-service.png)

You can also configure it as a folder action, to automatically perform post-processing for instance:
![alt tag](https://raw.githubusercontent.com/gotson/comics-utils/master/wiki/cbz-as-folderaction.png)

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**
* Python 2.7+
* [jdberry/tag](https://github.com/jdberry/tag)

**Usage**
```
> python sync-folder.py
```