Don't push mp3-file when not converting
This commit is contained in:
parent
800927705f
commit
aa9a5c0be5
@ -410,7 +410,11 @@ ConvertPlaylist() {
|
|||||||
for item in $(cat "$source/$line")
|
for item in $(cat "$source/$line")
|
||||||
do
|
do
|
||||||
mp3item=$(echo $item | sed -e 's/\.*\//\//g'| tr -s ' ')
|
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")
|
playline=$(echo "${mp3item}" | sed -e "s,$mappingsrc,$mappingdest,g")
|
||||||
if [[ $windowspaths == true ]]; then
|
if [[ $windowspaths == true ]]; then
|
||||||
playline=$(echo "${playline}" | sed -e 's,\/,\\,g')
|
playline=$(echo "${playline}" | sed -e 's,\/,\\,g')
|
||||||
|
Loading…
Reference in New Issue
Block a user