Cleanup sxmo_youtube.sh, shellcheck, indent properly, and remove unused cndtn

This commit is contained in:
Miles Alan 2020-08-25 21:22:29 -05:00
parent e424bfe85b
commit f57cc7db8b

View file

@ -83,12 +83,6 @@ resultsmenu() {
return return
elif [ "Close Menu" = "$PICKED" ]; then elif [ "Close Menu" = "$PICKED" ]; then
exit 0 exit 0
elif echo $PICKED | grep "Audio & Video or"; then
if [ "$AUDIOONLY" = 0 ]; then
AUDIOONLY=1
else
AUDIOONLY=0
fi
elif [ "$AUDIOONLY" = 1 ]; then elif [ "$AUDIOONLY" = 1 ]; then
URL="$(echo "$PICKED" | awk -F " " '{print $NF}')" URL="$(echo "$PICKED" | awk -F " " '{print $NF}')"
st -e mpv -ao=alsa -v --no-video "$URL" & st -e mpv -ao=alsa -v --no-video "$URL" &