From ffe67e00e2d2094fefb4acdc2532fb7956c7de2a Mon Sep 17 00:00:00 2001 From: q3aql Date: Wed, 10 Mar 2021 01:04:48 +0100 Subject: [PATCH] Remove extension .flac,.wav,.opus from title detection --- src/ks-mp3 | 3 +++ src/ks-mp3-album | 3 +++ src/ks-oga | 3 +++ src/ks-oga-album | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/ks-mp3 b/src/ks-mp3 index 730c88d..0dfdb6a 100755 --- a/src/ks-mp3 +++ b/src/ks-mp3 @@ -77,6 +77,9 @@ function removeExtension() { sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//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 wordToConvert=$(cat ${ksToolsSedFile}) echo ${wordToConvert} diff --git a/src/ks-mp3-album b/src/ks-mp3-album index 9ca13d8..19bff06 100755 --- a/src/ks-mp3-album +++ b/src/ks-mp3-album @@ -108,6 +108,9 @@ function removeExtension() { sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//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 wordToConvert=$(cat ${ksToolsSedFile}) echo ${wordToConvert} diff --git a/src/ks-oga b/src/ks-oga index c288953..1836e8f 100755 --- a/src/ks-oga +++ b/src/ks-oga @@ -77,6 +77,9 @@ function removeExtension() { sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//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 wordToConvert=$(cat ${ksToolsSedFile}) echo ${wordToConvert} diff --git a/src/ks-oga-album b/src/ks-oga-album index 6708bb6..6aa2146 100755 --- a/src/ks-oga-album +++ b/src/ks-oga-album @@ -108,6 +108,9 @@ function removeExtension() { sed -i 's/.ogg//g' "${ksToolsSedFile}" &> /dev/null sed -i 's/.ac3//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 wordToConvert=$(cat ${ksToolsSedFile}) echo ${wordToConvert}