FIX: Various Fixes for justZipIt.sh and convert.sh

main
Nikurasu 1 year ago
parent b950960a76
commit f51fce52ac
  1. 2
      ZipAllFoldersInDir/justZipIt.sh
  2. BIN
      ffmpegConvertFolder/2L-145_01_stereo_01.cd.flac
  3. 23
      ffmpegConvertFolder/convert.sh
  4. BIN
      ffmpegConvertFolder/mp3/2L-145_01_stereo_01.cd.mp3

@ -3,7 +3,7 @@ compressionlevel=5
while getopts l:h options
do
case $options in
l) compressionlevel="$OPTARG";;
l) compressionlevel=${OPTARG};;
h) printf "\nLittle Bash script for converting all sub-folders of a folder\n\nUsage:\n.justZipIt.sh (or your alias) [-l compression level]\n\nStandard values:\ncompression level: 5\n\n"
exit 2;;
esac

@ -18,21 +18,18 @@ typeofsecondparameter() { # Is the output parameter lossless or lossy
fi
}
outputogg() { # Change the file extension of the output to ogg instead of libvorbis
if [ "$output" == "libvorbis" ];
libvorbistogg() { # Change the file extension of the output or input to ogg instead of libvorbis
inputOrOutput=$1
if [ "$input" == "libvorbis" ] || [ "$output" == "libvorbis" ];
then
extension="ogg"
else
extension="$output"
fi
}
inputogg() { # Change the file extension of the output to ogg instead of libvorbis
if [ "$input" == "libvorbis" ];
then
extension="ogg"
else
extension="$input"
if [ "$inputOrOutput" == "in" ]
then
extension="$input"
else
extension="$output"
fi
fi
}
@ -94,7 +91,7 @@ else
smallhelp
elif [ "$inputfiletype" == "lossless" ] && [ "$outputfiletype" == "lossy" ]; # Lossless to Lossy
then
outputogg
libvorbistogg "out"
mkdir "$output"
for i in *."$input";
do

Loading…
Cancel
Save