database - Music DB Management¶
This module manages the music database. Its main task is to add new albums, artists or music videos to the Music Database.
Attention
The addressed paths must follow the naming scheme. See Music Naming Scheme for details.
This command line interface expects two positional arguments.
A subcommand and a path to the target (artist, album, song, video): musicdb database $SUBCOMMAND $PATH
.
The target gets determined by its path.
The following subcommands are provided:
remove
:Removes an artist, album or song from the database. Only the database entries get removed. The files will not be touched.
check
:Check the given path if it is a valid artist, album or song path. This is done by calling
musicdb.mdbapi.music.MusicDBMusic.AnalysePath()
.
Attention
After removing entries from the database they may be still in some caches. Best way to make sure all caches are updated is by restarting the MuiscDB WebSocket server
Examples
musicdb database check /data/music/Good\ Artist/2022\ -\ Album
musicdb database remove /var/music/Bad\ Artist
sudo systemctl restart musicdb