added tv streams
This commit is contained in:
19
.local/share/tv/tv.sh
Executable file
19
.local/share/tv/tv.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env sh
|
||||
# https://wiki.ubuntuusers.de/Internet-TV/Stationen/
|
||||
set -eu -o pipefail
|
||||
|
||||
SCRIPT=$(readlink -f "$0")
|
||||
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||
|
||||
MAP="$SCRIPTPATH/tv.csv"
|
||||
|
||||
cat "$MAP" \
|
||||
| cut -d ',' -f 1 \
|
||||
| rofi -dmenu -i -p "TV" \
|
||||
| head -n 1 \
|
||||
| xargs -i --no-run-if-empty grep "{}" "$MAP" \
|
||||
| cut -d ',' -f 2 \
|
||||
| head -n 1 \
|
||||
| xargs -i --no-run-if-empty /bin/mpv "{}"
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user