diff options
author | shipwreckt <me@shipwreckt.co.uk> | 2025-06-14 15:15:09 +0100 |
---|---|---|
committer | shipwreckt <me@shipwreckt.co.uk> | 2025-06-14 15:15:09 +0100 |
commit | c9e7170faff3e352eef5619dedf7a12e68ca610d (patch) | |
tree | ba6b562a3396fba855e21cebf8ad3bc10ee7a8f0 /files/config/mpd/scripts/artist.sh | |
parent | 95f2b4fc84a99b477df34fc827fa1936ab84f401 (diff) |
Diffstat (limited to 'files/config/mpd/scripts/artist.sh')
-rwxr-xr-x | files/config/mpd/scripts/artist.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 + |