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

master
Miles Alan 4 years ago
parent e424bfe85b
commit f57cc7db8b
  1. 6
      scripts/appscripts/sxmo_youtube.sh

@ -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" &

Loading…
Cancel
Save