music: forgot to clean pl. twitch: updates

This commit is contained in:
inigoortega 2020-04-18 13:15:11 +02:00
parent a51c743fe9
commit 5fde4d7a93
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ case "$MUSICPLAYER" in
while ! mocp -o shuffle 2>/dev/null; do
sleep 1
done
mocp -c
mocp -a ~/Music/music
mocp -p
;;

View File

@ -3,7 +3,7 @@
watch="$(cat $FAV_STREAMERS | rofi -dmenu -matching fuzzy)"
[ -n "$watch" ] && {
if youtube-dl --get-id "https://www.twitch.tv/$watch"; then
if [ -n "$(youtube-dl --get-id "https://www.twitch.tv/$watch")" ]; then
dash $TSCRIPTS/watch-video-select-format.sh \
"https://www.twitch.tv/$watch"
else