Don't push mp3-file when not converting

This commit is contained in:
Jeroen De Meerleer 2020-03-14 11:08:23 +01:00
parent 800927705f
commit aa9a5c0be5

View File

@ -410,7 +410,11 @@ ConvertPlaylist() {
for item in $(cat "$source/$line")
do
mp3item=$(echo $item | sed -e 's/\.*\//\//g'| tr -s ' ')
mp3item=$(echo "$mp3item" | sed -e 's/.flac/.mp3/')
if [[ $convert == true ]]; then
mp3item=$(echo "$item" | sed -e 's/.flac/.mp3/')
else
mp3item=$(echo "$item")
fi
playline=$(echo "${mp3item}" | sed -e "s,$mappingsrc,$mappingdest,g")
if [[ $windowspaths == true ]]; then
playline=$(echo "${playline}" | sed -e 's,\/,\\,g')