How do you find the site_id for zap2it (aka gracenote) channels? #1535
Replies: 2 comments
-
|
Alright, I figured out at least how to do it for Broadcast/OTA channels. As with many other things you need to check using another site that uses the same API for its results generation, e.g. tvtv-dot-us. The "NY3165" in the example is just the Lineup ID used on those other sites, so in my case it was "OTA89436" for checking the Sparks (Reno) Nevada lineup. While that happens to have the zip code in it, it's not necessarily the same as the zip code. Channel ID can also be obtained from those sites, though if you use something like zap2xml it is the same ID value listed for each channel in the XML output. Anyway, the formatting for the site_id appears to be as follows:
So for the Sparks (Reno) CBS affiliate the site_id was:
And the entry I added to my channels.xml was:
The EPG utility was able to retrieve program info for the channel using that entry. |
Beta Was this translation helpful? Give feedback.
-
|
Follow up: while I was able to retrieve information using that site_id, I only received info for 7 programs for the day. Gracenote itself shows far more for the day. There may be an issue with the site parser. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to retrieve some listings from zap2it/gracenote from channels that are not already in the repository's channel xml, but I'm having a devil of a time figuring out how to determine the site_id. The provided test script shows that it can pull from local channel listings, since it uses a New York-based channel to test:
const channel = { site_id: 'X/USA-NY31695-DEFAULT/NY31695/USA/13302/49141', xmltv_id: 'Spectrum News 1' }Some of that I can figure out. "USA" is USA, "NY" is New York, easy enough. "13302" is the zip code. Past that... where do the rest of those values come from? I'm not seeing any corresponding values on the gracenote tv listings guide, either visible or using inspect.
Beta Was this translation helpful? Give feedback.
All reactions