dd_progid and episode #

dd_progid and episode #

Postby thisleenoble » Wed Jan 11, 2017 6:14 am

--edner note: Post moved from the SD-DD section... data for xmltv_ns isn't in the SD-DD feed

Hi, apologies for resurrecting this old thread, but I've only just signed up to the service and I notice an inconsistency in the dd_progid. It is highlighted when viewed adjacent to the xmltv_ns tag in the same programme.
Here's the first entry in my current feed which doesn't seem to fit the specification in the PDF.
Code: Select all
<programme start="20170111154500 +0000" stop="20170111163000 +0000" channel="I1.21441.schedulesdirect.org">
      <title lang="en">The Hairy Bikers' Comfort Food</title>
      <sub-title lang="en">Nostalgia</sub-title>
      <desc lang="en">This episode is all about nostalgic comfort food, dishes to conjure up childhood memories, holiday favourites and tastes of days gone by. The Bikers cook a Lancashire hotpot just like Dave's mother used to make, and a French speciality brings back holiday memories for Si.</desc>
      <credits>
         <actor>Michelle Crowley</actor>
         <presenter>Dave Myers</presenter>
         <presenter>Simon King</presenter>
      </credits>
      <date>20170111</date>
      <category lang="en">Cooking</category>
      <category lang="en">Reality</category>
      <episode-num system="dd_progid">EP02575606.0001</episode-num>
      <episode-num system="xmltv_ns">0.7.</episode-num>
      <new />
   </programme>


The xmltv_ns tag indicates this is Season 1 Episode 8 (0.7. zero indexed), but the dd_progid says episode 0001. Shouldn it not be 0008? This makes using this information for series link functionality impossible using the dd_prog_id.

Actually, I just scanned ahead in the xml feed to find the next episode of that show and it says:
Code: Select all
      <episode-num system="dd_progid">EP02575606.0009</episode-num>
      <episode-num system="xmltv_ns">0.8.</episode-num>


which appears to be correct. Either this is an error in the data you're using, or there's a bug which might for example not set the episode number correctly for the first instance of some shows. The xmltv_ns data seems more consistently reliable but is not always present.
thisleenoble
 
Posts: 1
Joined: Tue Jan 10, 2017 2:55 am

Re: dd_progid and episode #

Postby rmeden » Wed Jan 11, 2017 9:39 am

You appear to be using the SD-JSON service (xmltv grabbers tv_grab_sd_json, tv_grab_zz_sdjson_sqlite). Knowing which grabber you're using could help isolate a problem.

dd_progid doesn't really allude to a season/episode format. It's basically a guaranteed unique value for an episode.

Season/Episode number (xmltv_ns), can be a bit of a pain... things are not always shown in order and so what do you do? Use episode # are aired or originally intended?

In your example, since the new dd_progid ends in 001, I suspect the front part changed for some reason. Maybe the title changed, maybe the show changed significantly, moved networks, or the ending # got too big (this happens with daily soap operas)

Robert
rmeden
SD Board Member
 
Posts: 1484
Joined: Tue Aug 14, 2007 2:31 pm
Location: Cedar Hill, TX

Re: dd_progid and episode #

Postby rkulagow » Wed Jan 11, 2017 2:09 pm

This is the raw JSON. Gracenote has never stated that the programID has anything to do with sequence, or season/episode or which order the episodes were broadcast, so you can't assume that 0008 is "later" than 0001.

Code: Select all
{
    "programID": "EP025756060001",
    "resourceID": "13590321",
    "titles": [
        {
            "title120": "The Hairy Bikers' Comfort Food"
        }
    ],
    "descriptions": {
        "description100": [
            {
                "descriptionLanguage": "en-GB",
                "description": "This episode is all about nostalgic comfort food, dishes to conjure up childhood memories."
            }
        ],
        "description1000": [
            {
                "descriptionLanguage": "en-GB",
                "description": "This episode is all about nostalgic comfort food, dishes to conjure up childhood memories, holiday favourites and tastes of days gone by. The Bikers cook a Lancashire hotpot just like Dave's mother used to make, and a French speciality brings back holiday memories for Si."
            }
        ]
    },
    "originalAirDate": "2017-01-11",
    "genres": [
        "Cooking",
        "Reality"
    ],
    "episodeTitle150": "Nostalgia",
    "metadata": [
        {
            "Gracenote": {
                "season": 1,
                "episode": 8
            }
        }
    ],
    "cast": [
        {
            "billingOrder": "01",
            "role": "Host",
            "nameId": "604744",
            "personId": "579786",
            "name": "Dave Myers"
        },
        {
            "billingOrder": "02",
            "role": "Host",
            "nameId": "674595",
            "personId": "579787",
            "name": "Simon King"
        }
    ],
    "crew": [
        {
            "billingOrder": "01",
            "role": "Props",
            "nameId": "1100977",
            "personId": "1025617",
            "name": "Michelle Crowley"
        }
    ],
    "entityType": "Episode",
    "showType": "Series",
    "md5": "8kXKmVlreateR7xb7QhD+A"
}


Code: Select all
{
    "programID": "EP025756060009",
    "resourceID": "13590321",
    "titles": [
        {
            "title120": "The Hairy Bikers' Comfort Food"
        }
    ],
    "descriptions": {
        "description100": [
            {
                "descriptionLanguage": "en-GB",
                "description": "The Bikers take everyday ingredients and transform them into comforting dishes."
            }
        ],
        "description1000": [
            {
                "descriptionLanguage": "en-GB",
                "description": "The Bikers take everyday ingredients and transform them into comforting dishes that are both satisfying and surprising. Bananas are transformed into a sophisticated tarte tatin, and some simple ricotta cheese is the basis for gnudi - light, delicious Italian dumplings."
            }
        ]
    },
    "originalAirDate": "2017-01-12",
    "genres": [
        "Cooking",
        "Reality"
    ],
    "episodeTitle150": "A Cut Above",
    "metadata": [
        {
            "Gracenote": {
                "season": 1,
                "episode": 9
            }
        }
    ],
    "cast": [
        {
            "billingOrder": "01",
            "role": "Host",
            "nameId": "604744",
            "personId": "579786",
            "name": "Dave Myers"
        },
        {
            "billingOrder": "02",
            "role": "Host",
            "nameId": "674595",
            "personId": "579787",
            "name": "Simon King"
        }
    ],
    "crew": [
        {
            "billingOrder": "01",
            "role": "Props",
            "nameId": "1100977",
            "personId": "1025617",
            "name": "Michelle Crowley"
        }
    ],
    "entityType": "Episode",
    "showType": "Series",
    "md5": "6eDVqfpwVTU+wsa+UDwXUA"
}
rkulagow
SD Staff
 
Posts: 881
Joined: Tue Aug 14, 2007 3:15 pm


Return to Developer

Who is online

Users browsing this forum: No registered users and 1 guest