Tag .mp3 and .m4a audio files from iTunes data automatically.
Project description
Tag .mp3 and .m4a audio files from iTunes data automatically.
There are various standards in audio file tagging, and the fields they contain are huge mess, but since most of them are not being used by us normal people, to make things simpler, I chose 8 essential and common fields pragmatically:
Title
Album
Artist
Album Artist
Genre
Release Date
Track Number
Disc Number
By default, autotagger will only work with these 8 fields, anything not included will be ignored.
Install
pip install autotagger
Usage
Run autotagger --help to see detailed information about command line options.
Input/Paste songs manually
To make autotagger working properly, you should first find the iTunes url for your album, autotagger take advantage of iTunes’s awesome lookup API and grab tagging data from it. use -u to indicate the itunes album url:
autotagger -u https://itunes.apple.com/us/album/schole-compilation-vol.-1/id251480659
After running this command, autotagger will ask you to enter the file paths, you can copy them by right click on songs in finder and choose Copy Path
Then paste them in the terminal, and hit enter to continue.
You can use url instead of album id to make the command clearer:
autotagger -i 251480659
Pass songs from pipeline
If you can get the song names from other command’s output, you can use pipeline mode to feed the input, add -p option to enable this feature:
find album -type f -name '*.mp3' | autotagger -i 251480659 -p
Download artwork
Add -a option to download artwork, note this option will make the command stop tagging songs.
autotagger -i 251480659 -a
Screenshots
autotagger -i 251480659
find album -type f -name '*.mp3' | autotagger -i 251480659 -p
Project details
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
Hashes for autotagger-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ad27c2f367efaff8f9855aa71ec86cc04be8bae89236a75d5b65d6fb89bbb6c |
|
MD5 | 45e7d800e2d184eec57e33447ab4b4d0 |
|
BLAKE2b-256 | 9f03fde2d4193aea4232113cb6a157372e2e083986afcd113bfc5b848b110d01 |