artist.sh (432B)
1 #!/bin/bash 2 # Define the directory containing your music files 3 MUSIC_DIR="Music/Dead_Kennedys/Dead_Kennedys_-_Give_Me_Convenience_Or_Give_Me_Death" 4 # Define the new artist name 5 NEW_ARTIST="Dead Kennedys" 6 7 # Loop through all .flac files in the folder 8 for song in "$MUSIC_DIR"/*.flac; do 9 # Update the artist metadata for each file 10 metaflac --remove-tag=ARTIST "$song" 11 metaflac --set-tag=ARTIST="$NEW_ARTIST" "$song" 12 done 13