more scripts

This commit is contained in:
2021-06-26 16:52:22 +02:00
parent 2ab3f97726
commit a77efb2f8b
8 changed files with 58 additions and 4 deletions

3
md
View File

@ -20,7 +20,7 @@ file_name=`youtube-dl "ytsearch:$1 lyrics" \
--embed-thumbnail \
--add-metadata \
|awk '$1 == "[ffmpeg]" && $2 == "Destination:" {print substr($0, index($0,$3))}'`
r128gain "$file_name" > /dev/null
r128gain "$file_name" 2> /dev/null
temp_dir="/tmp/idntag$(xxd -u -l 16 -p /dev/urandom)"
mkdir "$temp_dir"
temp_file="$temp_dir/$file_name"
@ -33,3 +33,4 @@ if checkMetadata "$temp_file"; then
elif ! checkMetadata "$file_name"; then
echo "enter it manually"
fi
rm -rf "$temp_dir"