Utility for managing metadata.
Project description
MetadataMagic
MetadataMagic is a command line utility for managing media and their respective metadata. This includes cleaning up naming for .json
metadata as downloaded by applications such as gallery-dl and yt-dlp, as well as packaging media and metadata together into archive formats such as .cbz
.
Installation
MetadataMagic can be downloaded from it's PyPI package using pip:
pip3 install Metadata-Magic
If you are installing from source, the following python packages are required:
Scripts
All scripts contain a [directory] field, which tells the script which directory to search. If left empty, [directory] defaults to the current working directoy.
Finding Missing files
Scripts for finding media with missing metadata or vise versa.
meta-missing-media
meta-missing-media [directory]
Prints a list of .json
metadata files in [directory] that do not have a corresponding media file to link to.
Linked media should have the same base name as the .json
metadata with a different extension.
Includes files in subdirectories.
meta-missing-metadata
meta-missing-metadata [directory]
Prints a list of all files in [directory] that do not have a corresponding .json
metadata file.
Linked media should have the same base name as the .json
metadata with a different extension.
Includes files in subdirectories.
Rename Files
Scripts for renaming files and metadata.
meta-rename
meta-rename [directory] [-i, --id]
Renames all media files and their corresponding .json
metadata files in a given directory, based on the title provided by the .json
metadata.
If the -i, --id
option is included, file names will also include the media ID tag provided by the .json
metadata as well.
This command renames files in main directory and subdirectories
sort-rename
sort-rename [directory] [OPTIONS]
Renames all media files and corresponing .json
metadata files in given directory to a standard filename with numbers designating their order.
This command does NOT rename files in subdirectories.
Options:
-n, --name [NAME] The base filename that will be used when renaming files. "\#" characters will be replaced with the index number.
-i, --index [INDEX] The index number to start with when renaming files. Defaults to "1".
Comic Archives
Scripts for creating and managing comic archives in .cbz
format.
archive-comic
archive-comic [directory] [OPTIONS]
Compresses all the files in a given directory into a .cbz
comic archive. The program will attempt to get metadata from any included .json
files to use for the ComicInfo.xml
metadata file, or from an already existing ComicInfo.xml
file. The program will prompt the user for any metadata that could not be gatherered.
If the user wishes to override any existing metadata when creating the archive, they can use the following options:
-s, --summary Override the summary
-d, --date Override the date
-a, --artists Override the artists
-p, --publisher Override the publisher
-u, --url Override the URL
-t, --tags Override the tags
archive-series
archive-series [directory] [-s, --single]
Updates existing .cbz
comic archives in a given directory to include series info. The program prompts the user for the series title and the series number of each archive when run.
If the -s, --single
option is included, all comic archives in the given directory will be set as being book 1 of 1 in a series. This option is intended for indicating that a collection of comic archives are all considered single comics or one-shots.
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 Distributions
Built Distribution
Hashes for Metadata_Magic-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7ff8a0169523ce50a0bfe4031b61908d3eb5d88c075a25e81dac4f33e8077d |
|
MD5 | 7ae61a246f605fb02abb75f1b532534b |
|
BLAKE2b-256 | 74d40068b2f02640bec453cedfde22d1576244e94abc1e67a42d42b7e6c458fa |