This repository provides a simple way to run mxlrc a command-line tool for downloading .lrc lyric files from Musixmatch, inside a Docker container. The setup is optimized for use on a Raspberry Pi (ARM64).
Adapt the following docker-compose.yml to your needs.
services:
mxlrc:
container_name: mxlrc
image: ghcr.io/m4rc-xx/mxlrc:latest
restart: 'no'
# --- Volumes ---
# This is where the user's local music directory is "mounted" into the container.
# The user needs to adjust the path on the left to their actual path.
volumes:
- /media/pi/Harddrive/Music::/music # Example: Mounts a 'music' folder from the current directory
environment:
# The user's personal Musixmatch token
- MX_TOKEN= #Musixmatch Usertoken
# The directory inside the container to be scanned.
# Must match the target path in the "volumes" section.
- MUSIC_DIR=/music
# Time in seconds to wait between individual downloads.
- SLEEP_TIME=15
# Set to "true" to overwrite existing .lrc files.
# Otherwise, set to "false".
- UPDATE_FILES=false
-
- /path/to/your/music:/music-
Left Side: Replace
/path/to/your/musicwith the absolute path to the music folder on your host system (e.g.,/media/pi/Toshiba/Musik/Rap/Interpreten). -
Right Side:
/musicis the path inside the container. This should not be changed.
-
-
MX_TOKEN: (Required) Insert your personal Musixmatch token here. Instructions on how to get one can be found here. -
MUSIC_DIR: The directory inside the container that will be scanned. Must match the target path of the volume (/music). -
SLEEP_TIME: The pause in seconds between each API request to avoid overloading the Musixmatch servers. The default is15. -
UPDATE_FILES: Set this value totrueif you want existing.lrcfiles to be downloaded again and overwritten.
This project is a Docker wrapper for the excellent mxlrc tool. All credits for the actual functionality go to the original developer.
- Original mxlrc Repository: github.com/fashni/MxLRC
- Spicetify Lyrics Plus: github.com/spicetify/spicetify-cli