You are here

How to find site_ids for new RadioTimes channels?

3 posts / 0 new
Last post
Newtonian
Offline
Donator
Joined: 5 years
Last seen: 3 months
How to find site_ids for new RadioTimes channels?

I use WebGrab Plus to get EPG data for TV and radio channels in the UK ... from RadioTimes.com (and a few from TVGuide.co.uk).

This generally works okay (thanks to all those involved) ... but new channels get added, removed or renamed sometimes.
I have downloaded the most recent version of radiotimes.com.channels.xml from the website (http://www.webgrabplus.com/epg-channels) but sometimes I need to edit the XML files ... the config file in particular (of course).

What I would like to know is, how do I find the site_id for a specific channel, which is NOT already listed in radiotimes.com.channels.xml?
Can I get a complete channel list somehow ... to get updated values? Perhaps via the Atlas API?

I added lines like this for radio stations:

Quote:

<channel update="i" site="radiotimes.com" site_id="52" xmltv_id="BBC Radio 1">BBC Radio 1</channel>

Let's say I want to add a line for the radio station “Smooth Radio”.

How would I find out the value to put in for the site_id?

Quote:

<channel update="i" site="radiotimes.com" site_id="???" xmltv_id="Smooth Radio">Smooth Radio</channel>

Thanks in advance for any replies.

Newtonian
Offline
Donator
Joined: 5 years
Last seen: 3 months

Thank you for the info and your reply, Blackbear199, it helped!

I got an error message when I tried to follow the instructions at http://www.webgrabplus.com/documentation/configuration/sitechannelsxml.
See the attached log file. I may have made an error or been calling it incorrectly, I am unsure.

However, I saw the URLs in the radiotimes.com.ini file, in the "CHANNEL FILE CREATION" section. Using those URLs, I was able to download the channel lists in JSON format. And then from that I was wable to build a list of all the radio stations etc. (see attached file).

Newtonian
Offline
Donator
Joined: 5 years
Last seen: 3 months

Thanks ... I checked the instructions again.
When I first tried it ... I thought I was supposed to comment out the first section of the INI file so that ONLY the section between the
"** @auto_xml_channel_start"
and
"** @auto_xml_channel_end"
lines should be enabled.
So ... I got it to work by leaving the rest of the file untouched, and just uncommenting the relevant lines in the CHANNEL FILE CREATION section. Then I ran it twice ... one time with

Quote:

subpage.format {list|Popular%20channels|Freeview|Sky|Freesat|Virgin|BT%20TV|YouView|Sky%20HD|TalkTalk} *For TV channels
url_index {url|https://immediate-prod.apigee.net/broadcast/v1/schedulesettings?media=tv...|subpage|} *For TV channels
*url_index {url|https://immediate-prod.apigee.net/broadcast/v1/schedulesettings?media=ra...} *For Radio channels

for the TV channels.
And then another time with

Quote:

*subpage.format {list|Popular%20channels|Freeview|Sky|Freesat|Virgin|BT%20TV|YouView|Sky%20HD|TalkTalk} *For TV channels
*url_index {url|https://immediate-prod.apigee.net/broadcast/v1/schedulesettings?media=tv...|subpage|} *For TV channels
url_index {url|https://immediate-prod.apigee.net/broadcast/v1/schedulesettings?media=ra...} *For Radio channels

for the radio channels.
See the attached files for both lists.

I understood the part about only using either the TV URL or radio URL but not both.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl