yt-dlp now feeds mood discovery. Queries come from the free-text hint, seed artists and genres; they run in parallel, are filtered to music-length videos, matched against library songs by normalized title and artist, scored, and stored as review candidates. Refresh, accept and reject endpoints are added: accepting a library match adds a seed immediately, while accepted tracks that are not owned wait for the future downloader. Decisions survive refreshes and stale undecided candidates are pruned. A background pass refreshes stale moods every hour, and the image ships a pinned yt-dlp binary (YTDLP_PATH, also added to the Nix shell and chart). Radio now avoids tracks played in the last 7 days when the pool is large enough, spaces artists and albums across a batch, and weighs skips three times as heavily as completions. The chart moves to 0.2.2.
29 lines
523 B
Nix
29 lines
523 B
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
jdk21
|
|
gradle
|
|
ffmpeg
|
|
yt-dlp
|
|
sqlite
|
|
git
|
|
curl
|
|
python3
|
|
kubernetes-helm
|
|
kustomize
|
|
kubectl
|
|
];
|
|
|
|
JAVA_HOME = pkgs.jdk21.home;
|
|
|
|
shellHook = ''
|
|
echo "MusicManager dev shell (JDK 21, Gradle, ffmpeg, yt-dlp, sqlite, helm, kustomize)"
|
|
java -version
|
|
echo ""
|
|
echo "Test: gradle test"
|
|
echo "Smoke: GRADLE=gradle scripts/smoke.sh"
|
|
echo "Image: docker build -t audiomanager ."
|
|
'';
|
|
}
|