Cleanup sxmo_youtube.sh, shellcheck, indent properly, and remove unused cndtn
This commit is contained in:
parent
e424bfe85b
commit
f57cc7db8b
1 changed files with 20 additions and 26 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue