If you use this script you will get some amazing radio stations, from ones that just play Elvis Presley, or The Beatles, or solid Goon Shows! I'm currently listening to Elvis, and its stuff that I've never heard before, and I thought my Elvis collection was pretty comprehensive!

To use this script, put it in your executable path, like /home/$USER/bin, or /usr/local/bin and run it once to generate the playlists. I have set mine up as a cronjob that runs every hour just to refresh the BBC feeds as they do tend to move about.

00 */1 * * * /home/$USER/bin/radiostreams

And heres the script -

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
# set -x
#: Title       : radiostreams
#: Date        : February 2014
#: Author      : Sharon Kimble
#: Version     : 2.0
#: Description : to give a comprehensive set of MPD radio stations

# Copyright (C) 2014, 2015, 2017 Sharon Kimble
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
####################################################
# Changelog.
# * 08-02-2014 - v2.0 - Enlarged the list of radio streaming sites
####################################################
# Variables
# playlistdir="/home/$USER/.mpd/playlists"
####################################################

declare -A radios
radios["BBC Radio 4"]="http://www.bbc.co.uk/radio/listen/live/r4_aaclca.pls"
radios["BBC 6 Music"]="http://www.bbc.co.uk/radio/listen/live/r6_aaclca.pls"
radios["BBC Radio 2"]="http://www.bbc.co.uk/radio/listen/live/r2_aaclca.pls"
radios["BBC Radio 4 Extra"]="http://www.bbc.co.uk/radio/listen/live/r4x_aaclca.pls"
radios["BBC Radio 4 longwave"]="http://www.bbc.co.uk/radio/listen/live/r4lw_aaclca.pls"
radios["BBC Radio 5 live"]="http://www.bbc.co.uk/radio/listen/live/r5l_aaclca.pls"
radios["BBC Radio 1"]="http://www.bbc.co.uk/radio/listen/live/r1_aaclca.pls"
radios["Irelands Kiss FM"]="http://uk1.internet-radio.com:15476/listen.pls"
radios["Amazing smooth and jazz"]="http://uk1.internet-radio.com:4086/listen.pls"
radios["Ambient chillout"]="http://uk2.internet-radio.com:31491/listen.pls"
radios["Champion Radio UK"]="http://uk2.internet-radio.com:31216/listen.pls"
radios["Chillout Lounge Radio"]="http://sc-tcl.1.fm:8010/listen.pls"
radios["181 FM - Highway 181"]="http://uplink.duplexfx.com:8018/listen.pls"
radios["181.FM - Christmas Traditional Classics"]="http://uplink.duplexfx.com:8124/listen.pls"
radios["North Pole Radio"]="http://ophanim.net:9790/listen.pls"
radios["181.FM - Christmas Power - Top 40 Christmas Hits"]="http://uplink.duplexfx.com:8086/listen.pls"
radios["Nirvana Radio - Music for Meditation and Relaxation"]="http://sc9106.xpx.pl:9106/listen.pls"
radios["bas FM"]="http://uk2.internet-radio.com:30274/listen.pls"
radios["Horizon Fm - Tenerife"]="http://uk1.internet-radio.com:15614/listen.pls"
radios["Metal Express"]="http://usa7-vn.mixstream.net/listen/8248.pls"
radios["spiritsplantsradio"]="http://streams.museter.com:2199/tunein/cenacle.pls"
radios["Abacus FM - Goon Shows"]="http://91.121.166.38:7690/listen.pls"
radios["Demented Radio"]="http://dementedradio.streamguys.us:8000/listen.pls"
radios["Cabin Boy Comedy Club"]="http://majestic.wavestreamer.com:3547/listen.pls"
radios["Kiss FM Hits"]="http://uk3.internet-radio.com:10911/listen.pls"
radios["Stagescripts Internet Radio"]="http://uk2.internet-radio.com:30591/listen.pls"
radios["Cool Fahrenheit 93"]="http://203.150.224.142:8003/listen.pls"
radios["KLUX 89.5HD"]="http://s4.viastreaming.net:7610/listen.pls"
radios["Happyday Newage Radio"]="http://222.122.131.69:8000/listen.pls"
radios["Angel Radio"]="http://s8.viastreaming.net:7030/listen.pls"
radios["EZ Does It Net Radio"]="http://mega6.radioserver.co.uk:8172/listen.pls"
radios["Pinetrees"]="http://sc05.saycast.com:8280/listen.pls"
radios["181 FM - Golden Oldies"]="http://uplink.duplexfx.com:8046/listen.pls"
radios["Beatles Radio"]="http://www.beatlesradio.com:8088/listen.pls"
radios["EP Express - The Elvis Presley Radio Station"]="http://s2.fastcast4u.com:9246/listen.pls"

echo
for k in "${!radios[@]}"
do
filepath="${playlistdir}/${k}.m3u"
rm -f "$filepath"
echo "#EXTM3U" >> "$filepath"
pls=${radios[$k]}
echo "#EXTINF:-1, BBC - $k" >> "$filepath"
/usr/bin/curl -s $pls \| grep File1 \| sed 's/File1=\\(.\*\\)/\\1/'>> "$filepath"
done


Comments

comments powered by Disqus