summaryrefslogtreecommitdiff
path: root/files/config/mpd/scripts/cap.sh
diff options
context:
space:
mode:
authorshipwreckt <me@shipwreckt.co.uk>2025-08-18 12:01:10 +0100
committershipwreckt <me@shipwreckt.co.uk>2025-08-18 12:01:10 +0100
commite8b5675eb77aa20027f369ca278457b6a7c2e142 (patch)
tree9b96e37beb5d27a6bf70b6b2f69c61e6012be914 /files/config/mpd/scripts/cap.sh
parentc9e7170faff3e352eef5619dedf7a12e68ca610d (diff)
Some changes to my Nvim setup!
Diffstat (limited to 'files/config/mpd/scripts/cap.sh')
-rwxr-xr-xfiles/config/mpd/scripts/cap.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/files/config/mpd/scripts/cap.sh b/files/config/mpd/scripts/cap.sh
deleted file mode 100755
index 62d1944..0000000
--- a/files/config/mpd/scripts/cap.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-# Path to your music directory
-music_dir="Music/Dead_Kennedys/Dead_Kennedys_-_Give_Me_Convenience_Or_Give_Me_Death"
-
-# Loop through all FLAC files in the directory (sorted by name)
-find "$music_dir" -type f -name "*.flac" | sort | while read -r file; do
- # Extract the base filename without extension
- base_name=$(basename "$file" .flac)
-
- # Format the title by replacing underscores with spaces and capitalizing the first letters
- title=$(echo "$base_name" | sed -e 's/_/ /g' -e 's/^\(.\)/\U\1/' -e 's/\b\(.\)/\U\1/g')
-
- # Remove the original TITLE tag
- metaflac --remove-tag=TITLE "$file"
-
- # Set the new TITLE tag
- metaflac --set-tag=TITLE="$title" "$file"
-
- echo "Updated title for: $file -> $title"
-done
-