Delete leftover metadata sh file
This commit is contained in:
parent
0467c5d05e
commit
cb9380a11f
13
a.sh
13
a.sh
|
|
@ -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
|
|
||||||
Loading…
Reference in New Issue