watch twitch puntual stream

This commit is contained in:
inigoortega 2019-12-30 14:15:05 +01:00
parent 3b15558c5a
commit c1d51ba8fc
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
streamer="$(rofi -dmenu)"
if [ -n "$streamer" ]; then
if [ "$(youtube-dl -e "https://www.twitch.tv/$streamer" 2>/dev/null)" ]; then
notify-send "$streamer found"
mpv "https://www.twitch.tv/$streamer"
else
notify-send "$streamer NOT FOUND or NOT STREAMING"
fi
fi