I just tested on my TVH 4.3 server and both streams work no problem. Make sure however, that you’ve set the “type override” of the services to “Radio”, otherwise Kodi assumes they’re video streams. Map them to channels and then you’re golden.
I have created a playlist with the correct syntax to make a number of radio streams work with TVHeadened. Note sure it will be to everyone’s taste but it’s going to keep my house happy!
It can be added in the same way a IPTV playlist can be added…only problem is I can’t upload file as I’m a new user, will pop back in a few days and see if I can upload it then.
No problem. I’ve spent a lot of time making my CoreELEC box into an all-in-one media device, so I game on it, watch live tv, movies, and of course, listen to radio.
If anyone’s interested, has a machine they can run python on and are able to navigate python enough to import modules, I have a simple script that grabs radio stations off of tunein.com and creates a TVHeadend-compatible M3U8 file. The script will grab local stations by default, and should work with any tunein radio list page—including location lists like https://tunein.com/radio/Central-America-r101320/.
It doesn’t account for geo-location fencing, nor does it scrape streams when tunein directs to external players. YMMV.
File "/home/john/TEST/tuneinradio.py", line 44
m3ufile = open(tuneinradiom3u, 'w+')
^
IndentationError: unindent does not match any outer indentation level
I know nothing of python, just ran the script with the above result.
Suggestions? Thanks.
No need to give up so quickly. I’m not that familiar with PCLinuxOS. What distro is it most similar to? Another distro’s PhantomJS may work on PCLINUXOS.
Regardless, it’s only one way of getting a JavaScript rendered pagedump. Headless Chromium or Firefox or even other options are also capable. Do you have either of those two browsers on your system?
Firefox and Chrome are both installed as well as several other browsers.
PCLinuxOS is an individual distro … a fork of Mandrake from way back … and is a rolling release.
I edited the ‘local’ url to my actual location and it did indeed produce a populated m3u8 list.
I have not tested it on the server yet, but will do soon I hope.
For your information, in case it might be important to you, the terminal, as well as listing the found stations also produced the following output
Traceback (most recent call last):
File "./tuneinradio_without_selenium.py", line 145, in <module>
main()
File "./tuneinradio_without_selenium.py", line 128, in main
m3ulink = "#EXTINF:-1 tvg-logo=\"" + thisimage + "\" tvg-id=\"" + title + "\" group-title=\"MyRadio\" radio=\"true\"," + title + "\npipe:///usr/bin/ffmpeg -loglevel fatal -i " + finalurl + " -vn -acodec libmp3lame -metadata service_provider=" + provider + " -metadata service_name=" + provider + " -f mpegts -mpegts_service_type digital_radio pipe:1\n\n"
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 93: ordinal not in range(128)
Thanks again for doing this … appreciated
EDIT:
I think the reason for the errors is that some of the stations are not functioning (at least not in a browser), and the script errors out when it meets such a radio station.
So the list produced is incomplete as all stations following the ‘bad’ one never get listed.