Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- PLAYLIST=${XDG_CACHE_HOME:-~/.cache}/iptv.m3u
- function open_channel
- {
- gst-play -q "$2"
- }
- export -f open_channel
- if [[ $1 == "-f" ]]; then
- rm -f $PLAYLIST
- wget -c -q -O $PLAYLIST http://lanet.tv/playlist.m3u || exit 1
- fi
- grep -E "^(#EXTINF|http)" $PLAYLIST | sed "s/#EXTINF.*,//" | \
- yad --list --title="Тель-Авизор" --width=250 --height=500 \
- --button="gtk-close:1" --column="Канал" --column="" --hide-column=2 \
- --dclick-action '/bin/sh -c "open_channel %s"'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement