summaryrefslogtreecommitdiff
path: root/files/config/mpd/scripts/artist.sh
diff options
context:
space:
mode:
authorshipwreckt <me@shipwreckt.co.uk>2025-06-14 15:15:09 +0100
committershipwreckt <me@shipwreckt.co.uk>2025-06-14 15:15:09 +0100
commitc9e7170faff3e352eef5619dedf7a12e68ca610d (patch)
treeba6b562a3396fba855e21cebf8ad3bc10ee7a8f0 /files/config/mpd/scripts/artist.sh
parent95f2b4fc84a99b477df34fc827fa1936ab84f401 (diff)
Old MPD scrips I made that I did not add beforeHEADmaster
Diffstat (limited to 'files/config/mpd/scripts/artist.sh')
-rwxr-xr-xfiles/config/mpd/scripts/artist.sh13
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
+