fix: music recognition for songrec 0.6.3+

This commit is contained in:
Javier Rolando
2026-02-21 06:55:20 -03:00
parent 3d9f51030c
commit aea06d42ab
@@ -53,7 +53,7 @@ while true; do
fi
ffmpeg -f s16le -ar 44100 -ac 2 -i "$TMP_RAW" -acodec libmp3lame -y -hide_banner -loglevel error "$TMP_MP3" 2>/dev/null
RESULT=$(songrec audio-file-to-recognized-song "$TMP_MP3" 2>/dev/null || true)
RESULT=$(songrec recognize --json "$TMP_MP3" 2>/dev/null || true)
if echo "$RESULT" | grep -q '"matches": \[' && [ ${#RESULT} -gt $MIN_VALID_RESULT_LENGTH ]; then
echo "$RESULT"