feat: add books too
Some checks failed
Code Analysis / SonarQube (push) Failing after 50s

This commit is contained in:
2025-03-24 20:07:24 -07:00
parent e33df16e43
commit 00dc40ba47
5 changed files with 662 additions and 3 deletions

View File

@ -29,8 +29,6 @@ for file in $(find /home/naomi/music -type f -print0 | tr '\0' '\n'); do
# use jq to add the song to the list
songs="$songs$(jq -n --arg title "$title" --arg artist "$artist" '{title: $title, artist: $artist}'),"
# songs="$songs{\"title\":\"$(echo "$title" | sed -e 's/[\\"\/]/\\&/g' | sed -e 's/[\x01-\x1f\x7f]//g')\",\"artist\":\"$(echo "$artist" | sed -e 's/[\\"\/]/\\&/g' | sed -e 's/[\x01-\x1f\x7f]//g')\"},"
done
# Remove trailing comma and add square brackets to complete the list