Forked from https://notabug.org/Aesir.
Updates genre, year and image of .mp3 and .flac files based on title and artist using the Discogs database, and rename the file based on the title and artist.
- Requires Python >=3.7 and a modern Python environement manager like Poetry or PDM.
- Requires a Discogs developper account and free API key: https://www.discogs.com/settings/developers
poetry install
or
pdm install
poetry run python3 main.py
or
pdm run python3 main.py
On the first run, it will ask for some inputs. You can change these variables after in the discogs_tag.ini
file.
For the discogs access token, you can create one here.
overwrite_year = False
If year tag is set on the file, it will not overwrite it.
If year tag is empty, it will add it.
overwrite_genre = False
If genre tag is set on the file, it will not overwrite it.
If genre tag is empty, it will add it.
embed_cover = True
Enable or disable cover embedding feature. Will overwrite existing covers.
overwrite_cover = False
If cover is set on the file, it will not overwrite it.
If cover is empty, it will add it.
rename_file = True
If file is already named correctly, it will not rename it.
If artist and/or title is empty, it will not rename it.
Otherwise, it will rename it to artist - title.ext
.
https://youtu.be/mWQZJS94p40
Thanks to Bas Curtiz for creating the video.