summaryrefslogtreecommitdiff
path: root/files/config/mpd/scripts/artist.sh
diff options
context:
space:
mode:
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
+