Delete leftover metadata sh file

This commit is contained in:
davi 2024-04-08 07:46:19 +00:00
parent 0467c5d05e
commit cb9380a11f
1 changed files with 0 additions and 13 deletions

13
a.sh
View File

@ -1,13 +0,0 @@
#!/bin/bash
FOLDER="/var/lib/gitea/music/Madeon/Madeon - Secret Sky 2020 (DJ Mix)" #your music path
METAFLAC_PATH="/usr/bin/metaflac" # you need to install "flac" (apt install flac)
for file in "$FOLDER"/*.flac; do
if [ -e "$file" ]; then
"$METAFLAC_PATH" --remove-tag=ALBUMARTIST --remove-tag=COMPILATION "$file" # Remove existing ALBUMARTIST and COMPILATION tags
"$METAFLAC_PATH" --set-tag="ALBUMARTIST=Various Artists" --set-tag="COMPILATION=1" "$file" # Set new ALBUMARTIST and COMPILATION tags
echo "Tags updated for $file."
else
echo "No FLAC files found in the folder."
exit 1
fi
done