Play LastFM recommendations on linux: using mpd, yt-dlp and bash
https://polarhive.net/jukebox
fixes #13 |
||
---|---|---|
.github | ||
stream | ||
LICENSE | ||
README.md | ||
charts | ||
jukebox | ||
listen |
README.md
jukebox
Play LastFM recommendations on linux: using mpd(1)
, yt-dlp(1)
and bash(1)
usage: demo
./jukebox
jukebox -h
-a: <artist name>
-g: <genre name>
-s: <song name>
-u: <lastfm: username>
-m: <lastfm: mix | recommended | library>
-l: vosk: uses your mic to search songs
-y: use ytmusic tags for songs
-c: top charts in your region (setup your api_key)
setup:
- edit the script to: use your LastFM
$username
- choose between:
- recommended: Listen to recommended music from Last.fm
- library: Listen to music you’ve scrobbled before
- mix: Listen to a mix of music you’ve scrobbled before and recommendations from Last.fm
todo/bugs
- sanity-check title/artist tags before scrobbling
- figure your how to
mpc add
songs properly - make the script interactive
- fast(er)? yt-dlp fetches
- custom artist/album search
- global charts
- voice-recognition/search via vosk ref: bugswriter's video
prerequisites:
mpd
,yt-dlp
,jq
and optionallympdscribble
(to scrobble to LastFM)- run
systemctl --user enable --now mpd mpdscribble
at least once before running jukebox - read: foss-music-setup or use my dotfiles
extra:
- charts: LastFM
$api_key
- listen:
pip install vosk google-speech
&pacman -S sox
- stream: Stream songs to your other devices like a phone, laptop or speaker
This repo is hosted on Codeberg & mirrored to GitHub for traffic.