14 lines
210 B
Bash
Executable File
14 lines
210 B
Bash
Executable File
#!/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
|