bash/fedilives/owncast.sh

14 lines
210 B
Bash
Raw Normal View History

2023-02-14 18:22:28 +00:00
#!/usr/bin/env bash
: "${1?How to use: $0 OWNCAST_LINK }"
url="$1"
link=$(echo "$url" | sed 's#https://##' | sed 's#/##' )
echo
xdg-open https://"$link"/embed/chat/readwrite &
mpv https://"$link" &
exit 0