A program to write metadata from metron.cloud to a comic archive
Project description
Quick Description
A command-line tool to tag comic archives with metadata from metron.cloud.
Installation
PyPi
Or install it yourself:
$ pipx install metron-tagger
FAQ
How to enable RAR support?
It depends on the unrar command-line utility, and expects it to be in your $PATH.
Help
usage: metron-tagger [-h] [-r] [-o] [-m] [-c] [--id ID] [-d] [--ignore-existing] [--accept-only] [--missing] [-s] [-z] [--validate] [--remove-non-valid] [--delete-original] [--duplicates] [--migrate] [--version] path [path ...] Read in a file or set of files, and return the result. positional arguments: path Path of a file or a folder of files. options: -h, --help show this help message and exit -r, --rename Rename comic archive from the files metadata. (default: False) -o, --online Search online and attempt to identify comic archive. (default: False) -m, --metroninfo Write, delete, or validate MetronInfo.xml. (default: False) -c, --comicinfo Write, delete, or validate ComicInfo.xml. (default: False) --id ID Identify file for tagging with the Metron Issue Id. (default: None) -d, --delete Delete the metadata tags from the file. (default: False) --ignore-existing Ignore files that have existing metadata tag. (default: False) --accept-only Automatically accept the match when exactly one valid match is found. (default: False) --missing List files without metadata. (default: False) -s, --sort Sort files that contain metadata tags. (default: False) -z, --export-to-cbz Export a CBR (rar) archive to a CBZ (zip) archive. (default: False) --validate Verify that comic archive has a valid metadata xml. (default: False) --remove-non-valid Remove metadata xml from comic if not valid. Used with --validate option (default: False) --delete-original Delete the original archive after successful export to another format. (default: False) --duplicates Identify and give the option to delete duplicate pages in a directory of comics. (Experimental) (default: False) --migrate Migrate information from a ComicInfo.xml into a *new* MetronInfo.xml (default: False) --version Show the version number and exit
Examples
To tag all comics in a directory with MetronInfo.xml that don’t already have one:
metron-tagger -om --ignore-existing /path/to/comics
To remove any ComicInfo.xml from a directory of comics:
metron-tagger -dc /path/to/comics
To validate any metadata, ComicInfo.xml and MetronInfo.xml, would be done by running the following:
metron-tagger -cm --validate /path/to/comics
To write MetronInfo.xml metadata from comics with ComicInfo.xml data, and migrate data for comics that don’t exist at the Metron Comic Database:
metron-tagger -om --migrate /path/to/comics
To remove duplicate pages from comics (which should be only ran on a directory of weekly release since we scan all the pages within a comic), would be done by running the following:
metron-tagger --duplicates /path/to/weekly/comics
Bugs/Requests
Please use the GitHub issue tracker to submit bugs or request features.
License
This project is licensed under the GPLv3 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file metron_tagger-4.1.0.tar.gz
.
File metadata
- Download URL: metron_tagger-4.1.0.tar.gz
- Upload date:
- Size: 62.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c4179120fd5c401e9cb2f7b134e29dd6c3297892834829da5264db34d279b2fb
|
|
MD5 |
92519f6b0f3c4fbd8c64fafd34eb48b6
|
|
BLAKE2b-256 |
0334c13fac275aac4fc58e6d853066851357eec05f2ee49e061f932f36bbce02
|
File details
Details for the file metron_tagger-4.1.0-py3-none-any.whl
.
File metadata
- Download URL: metron_tagger-4.1.0-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f7c7003635d67704a0a70634272d102957b2495ef7ba49e1b0e6a62203b66964
|
|
MD5 |
b4a1afd9ed83c7267ac1c7645d2f98a1
|
|
BLAKE2b-256 |
4076aa1c5721b91372a9d1a106f282b1d067568650986062de75a65f268ab3fa
|