Move dl-only logic to playlist()
This commit is contained in:
parent
082e85c057
commit
9994945edf
4
ptgdp
4
ptgdp
@ -249,14 +249,12 @@ backend-execqueue() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -z "$_optdlonly" ]; then
|
|
||||||
for song in "${_queue[@]}"; do
|
for song in "${_queue[@]}"; do
|
||||||
backend-enqueue "$song"
|
backend-enqueue "$song"
|
||||||
done
|
done
|
||||||
if [ "$_optautoplay" != "0" ]; then
|
if [ "$_optautoplay" != "0" ]; then
|
||||||
backend-play
|
backend-play
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Core program functions
|
# Core program functions
|
||||||
@ -312,7 +310,7 @@ playlist() {
|
|||||||
for file in "${_queue[@]}"; do
|
for file in "${_queue[@]}"; do
|
||||||
printf "$file\\n"
|
printf "$file\\n"
|
||||||
done
|
done
|
||||||
else
|
elif [ -z "$_optdlonly" ]; then
|
||||||
backend-execqueue
|
backend-execqueue
|
||||||
fi
|
fi
|
||||||
log "Finished: $dlcache cached, $dlsuccess downloaded, $dlerr failed"
|
log "Finished: $dlcache cached, $dlsuccess downloaded, $dlerr failed"
|
||||||
|
Loading…
Reference in New Issue
Block a user