0

On August 6th, I made a TVGRID_LOOKUP request with the gracenote eyeQ API.

The response returned an Episode of "The Big Bang Theory - The Zazzy Substitution" (airing-time 21:45). The TVPROGRAM GNID was 442470733-5294AFF66A2B66D6CF9368BCE777839F.

Today I made the same request and got a different GNID (445129959-C521A678BE53213977744678C90B202C). What happend? I thought GNIDs are unique?

Just in case, here's my request:

<?xml version="1.0"?>
<QUERIES>
  <AUTH>
    <CLIENT>__CLIENT_ID__</CLIENT>
    <USER>__USER_ID__</USER>
  </AUTH>
  <QUERY CMD="TVGRID_LOOKUP">
    <TVCHANNEL>
      <GN_ID>251533333-26F45A038CFBD8323F70D3944EB16008</GN_ID>
    </TVCHANNEL>
    <DATE TYPE="START">2014-08-11T20:00</DATE>
    <DATE TYPE="END">2014-08-11T20:10</DATE>
  </QUERY>
</QUERIES>
Devran Cosmo Uenal
  • 6,055
  • 2
  • 26
  • 29

1 Answers1

0

TVPROGRAM's are unique within the TVGRID, but are not guaranteed to be consistent from day to day. However, if you do a follow up query, you can get a unique GN_ID of the AV_WORK that represents the show/episode. For example:

<QUERIES>
  <AUTH>
    <CLIENT>_your_client_id_</CLIENT>
    <USER>_your_user_id_</USER>
  </AUTH>
  <LANG>eng</LANG>
  <COUNTRY>usa</COUNTRY>
  <QUERY CMD="TVPROGRAM_FETCH">
    <GN_ID>445129959-C521A678BE53213977744678C90B202C</GN_ID>
  </QUERY>
</QUERIES>

Returns:

...
<AV_WORK>
    <GN_ID>240234711-A3BEDE6BF00D48B35FAE5F0E66305B30</GN_ID>
</AV_WORK>
...

This AV_WORK GN_ID will be the same between the different TVPROGRAM GN_IDs you received.

cweichen
  • 493
  • 3
  • 5
  • Oh - then I always misused the TVPROGRAM GN_ID as something like a unique "broadcast_id". Is there a way to obtain a unique+constant ID from a tvgrid? in my app, the user should be able to interact with a tvprogram (set reminder, comment etc..). when using AV_WORK GN_IDs, the user would interact with every broadcast - no matter when and where in the world. maybe in a paid version? – Devran Cosmo Uenal Aug 13 '14 at 06:16