From 37196a07ec0daa765a186220c653b977702ca680 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 2 Sep 2019 16:48:41 +0100 Subject: [PATCH] Initial commit --- gui | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ play | 7 ++++++ 2 files changed, 79 insertions(+) create mode 100755 gui create mode 100755 play diff --git a/gui b/gui new file mode 100755 index 0000000..f75d0cf --- /dev/null +++ b/gui @@ -0,0 +1,72 @@ +#!/bin/sh + +GTKDIALOG=gtkdialog + +radioBtn() { + echo '' +} + + +MAIN_DIALOG=' + + + + '"`radioBtn "Radio 1" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p`"' + '"`radioBtn "Radio 2" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p`"' + '"`radioBtn "Radio 3" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_p`"' + '"`radioBtn "Radio 4" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p`"' + '"`radioBtn "Radio 4 Extra" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4extra_mf_p`"' + '"`radioBtn "Radio 5 Live" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio5live_mf_p`"' + '"`radioBtn "Radio 6 Music" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_6music_mf_p`"' + + + '"`radioBtn "BBC Cornwall" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_lrcorn_mf_p`"' + '"`radioBtn "BBC Devon" http://bbcmedia.ic.llnwd.net/stream/bbcmedia_lrdevon_mf_p`"' + '"`radioBtn "Pirate FM" https://str4.sad.ukrd.com/pirate?rp=3.1.2&ts=1553703504&norequeue=1`"' + + + '"`radioBtn "R1 Dubstep" https://streaming.radionomy.com/R1Dubstep`"' + '"`radioBtn "R1 Melodic Dubstep" https://streaming.radionomy.com/R1MelodicDubstep`"' + '"`radioBtn "Dubstep.fm" https://www.dubstep.fm/256aac.m3u`"' + '"`radioBtn "Dubstep Radio" http://198.15.94.34:8018/stream`"' + + + '"`radioBtn "HBR1 Tranceponder" http://radio.hbr1.com:19800/trance.ogg.m3u`"' + '"`radioBtn "HBR1 Tronic Lounge" http://radio.hbr1.com:19800/tronic.ogg.m3u`"' + '"`radioBtn "HBR1 Dream Factory" http://radio.hbr1.com:19800/ambient.ogg.m3u`"' + + + '"`radioBtn "Rock Radio Beograd" http://ca6.rcast.net:4020/\;stream.mp3`"' + + + txtTitles + + tail -n100 /tmp/play | grep icy-title | sed -e 's/icy-title://' | tail -n1 + + + refresh:txtTitles + + + + + + + + +' +export MAIN_DIALOG + +case $1 in + -d | --dump) echo "$MAIN_DIALOG" ;; + *) $GTKDIALOG --space-expand=true --space-fill=true --program=MAIN_DIALOG ;; +esac + +killall mpv + diff --git a/play b/play new file mode 100755 index 0000000..f5658f4 --- /dev/null +++ b/play @@ -0,0 +1,7 @@ +#!/bin/bash +killall mpv +echo "ict-title: " >> /tmp/play +echo "---------------" >> /tmp/play +echo $1 >> /tmp/play +mpv --quiet $1 >> /tmp/play 2>&1 & +