diff options
| author | shipwreckt <me@shipwreckt.co.uk> | 2025-08-18 12:01:10 +0100 |
|---|---|---|
| committer | shipwreckt <me@shipwreckt.co.uk> | 2025-08-18 12:01:10 +0100 |
| commit | e8b5675eb77aa20027f369ca278457b6a7c2e142 (patch) | |
| tree | 9b96e37beb5d27a6bf70b6b2f69c61e6012be914 /files/config/mpd/scripts/album1.sh | |
| parent | c9e7170faff3e352eef5619dedf7a12e68ca610d (diff) | |
Some changes to my Nvim setup!
Diffstat (limited to 'files/config/mpd/scripts/album1.sh')
| -rwxr-xr-x | files/config/mpd/scripts/album1.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/files/config/mpd/scripts/album1.sh b/files/config/mpd/scripts/album1.sh deleted file mode 100755 index 171011a..0000000 --- a/files/config/mpd/scripts/album1.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -# Script for changing specific album names. - -# Path to the specific album directory -album_dir="" - -# The desired album name for these files -album_name="" - -# Loop through all FLAC files in the directory -find "$album_dir" -type f -name "*.flac" | while read -r file; do - # Extract the current ALBUM metadata - raw_album=$(metaflac --show-tag=ALBUM "$file") - - # Check if the ALBUM tag exists - if [[ "$raw_album" == ALBUM=* ]]; then - echo "Updating existing ALBUM metadata for: $file" - else - echo "No ALBUM metadata found for: $file. Adding ALBUM tag." - fi - - # Remove the existing ALBUM tag (if it exists) - metaflac --remove-tag=ALBUM "$file" - - # Set the new ALBUM tag with the desired name - metaflac --set-tag=ALBUM="$album_name" "$file" - - echo "Updated ALBUM metadata for: $file -> $album_name" -done - |
