From c9e7170faff3e352eef5619dedf7a12e68ca610d Mon Sep 17 00:00:00 2001 From: shipwreckt Date: Sat, 14 Jun 2025 15:15:09 +0100 Subject: Old MPD scrips I made that I did not add before --- files/config/mpd/scripts/artist.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 files/config/mpd/scripts/artist.sh (limited to 'files/config/mpd/scripts/artist.sh') diff --git a/files/config/mpd/scripts/artist.sh b/files/config/mpd/scripts/artist.sh new file mode 100755 index 0000000..bcf0508 --- /dev/null +++ b/files/config/mpd/scripts/artist.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Define the directory containing your music files +MUSIC_DIR="Music/Dead_Kennedys/Dead_Kennedys_-_Give_Me_Convenience_Or_Give_Me_Death" +# Define the new artist name +NEW_ARTIST="Dead Kennedys" + +# Loop through all .flac files in the folder +for song in "$MUSIC_DIR"/*.flac; do + # Update the artist metadata for each file + metaflac --remove-tag=ARTIST "$song" + metaflac --set-tag=ARTIST="$NEW_ARTIST" "$song" +done + -- cgit v1.2.3