Skip to content

jkreucher/MusicLibraryTagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

MusicLibraryTagger

2021 Jannik Kreucher

What is MusicLibraryTagger?

This project uses the Spotify-Api and python library "spotipy" to get information about a specific song. The script tags the mp3 file based of the gathered information. The filename of the mp3 is used to search the song. Once song attributes are found the script tags the mp3 and renames it.

Usage of MusicLibraryTagger

First of dependencies are needed. For Debian/Ubuntu users installing python3 wont be compicated at all:

$ sudo apt install python3 python3-pip

To communicate with the Spotify API and to tag the mp3s libraries are needed:

$ pip3 install mutegan
$ pip3 install spotipy

Now is the time to run the script. Is requires at least one argument. Each argument of the script will be a mp3 file to be tagged:

$ python3 librarytagger.py <library_path> <mp3_file> [<mp3_file_2> ...] 

Tagging a Library

Of course when having a rather large library you dont want to add each and every file by hand. For that a pipe is used to automate that. Just a single line to tag your entire library:

$ find ./newsongs/ -name '*.mp3' -print0 | xargs -0 ./librarytagger.py ./library/

About

This software project sets mp3 tags automatically.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages