Remove extension .flac,.wav,.opus from title detection

This commit is contained in:
q3aql 2021-03-10 01:04:48 +01:00
parent a73c0dbd3d
commit ffe67e00e2
4 changed files with 12 additions and 0 deletions

View File

@ -77,6 +77,9 @@ function removeExtension() {
sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.flac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.wav//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.opus//g' "${ksToolsSedFile}" &> /dev/null
# Show file without extension # Show file without extension
wordToConvert=$(cat ${ksToolsSedFile}) wordToConvert=$(cat ${ksToolsSedFile})
echo ${wordToConvert} echo ${wordToConvert}

View File

@ -108,6 +108,9 @@ function removeExtension() {
sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.flac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.wav//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.opus//g' "${ksToolsSedFile}" &> /dev/null
# Show file without extension # Show file without extension
wordToConvert=$(cat ${ksToolsSedFile}) wordToConvert=$(cat ${ksToolsSedFile})
echo ${wordToConvert} echo ${wordToConvert}

View File

@ -77,6 +77,9 @@ function removeExtension() {
sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.flac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.wav//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.opus//g' "${ksToolsSedFile}" &> /dev/null
# Show file without extension # Show file without extension
wordToConvert=$(cat ${ksToolsSedFile}) wordToConvert=$(cat ${ksToolsSedFile})
echo ${wordToConvert} echo ${wordToConvert}

View File

@ -108,6 +108,9 @@ function removeExtension() {
sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.aac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.flac//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.wav//g' "${ksToolsSedFile}" &> /dev/null
sed -i 's/.opus//g' "${ksToolsSedFile}" &> /dev/null
# Show file without extension # Show file without extension
wordToConvert=$(cat ${ksToolsSedFile}) wordToConvert=$(cat ${ksToolsSedFile})
echo ${wordToConvert} echo ${wordToConvert}