Page 4 of 6

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Thu Apr 02, 2015 7:01 pm
by rkulagow
Yes, but these are the low-hanging fruit. Let me trace back to the root cause.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Sat Apr 04, 2015 12:17 pm
by rkulagow
For program metadata regarding season and episode, "Tribune" -> "Gracenote" to reflect the name change of the parent company.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 07, 2015 11:11 am
by gtb
rkulagow wrote:For program metadata regarding season and episode, "Tribune" -> "Gracenote" to reflect the name change of the parent company.
Good luck finding all the places Tribune is buried in the docs/code (I know, you have to start somewhere). I believe the SD site itself is full of such legacy names too (including the subscription agreement, privacy policy, probably others). Fortunately, most rational contracts use words such as "and successor companies", covering some cases of changes.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 07, 2015 11:42 am
by rkulagow
PHPStorm (which is what I code in) makes it very easy to do a global search and replace across all files. This was just a matter of not properly documenting it in the API.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Fri Apr 10, 2015 9:11 pm
by rkulagow
Updated:

New program elements:

"audience" - (Work-in-progress) if the element is included, it will be a string containing the intended audience. Possible values are
Children
Adults only

"holiday" - if the element is included, it will be a free-form string containing the holiday associated with the program.

"animation" - (Work-in-progress) if the element is included, it will be a string containing the following:
Animated
Anime
Live action/animated
Live action/anime

There are also language-specific versions for animation, so you may see:
Dessins animé
Animada
Animado
Animerad/tecknad
Lebhaft
Animé

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Mon Apr 20, 2015 9:54 am
by rkulagow
The code that deals with images should now return proper JSON. Please see the updated documentation at

https://github.com/SchedulesDirect/JSON ... os-banners

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Mon Apr 20, 2015 4:06 pm
by rkulagow
You can download the generic descriptions for a program as a separate call:

https://github.com/SchedulesDirect/JSON ... -a-program

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Mon Apr 20, 2015 8:51 pm
by jose-pr
Can the image response be

Code: Select all

{ "result" : [
      { "programID": "SH00712240",
         "images"    : [
        {
            "width": "135",
            "height": "180",
            "uri": "assets/p282288_b_v2_aa.jpg",
            "size": "Sm",
            "aspect": "3x4",
            "category": "Banner-L3",
            "text": "yes",
            "primary": "true",
            "tier": "Series"
        },
        {
            "width": "720",
            "height": "540",
            "uri": "assets/p282288_b_h6_aa.jpg",
            "size": "Lg",
            "aspect": "4x3",
            "category": "Banner-L3",
            "text": "yes",
            "primary": "true",
            "tier": "Series"
        }
     ]
  }
]}

Basically for the show not to be in the position of the variable, at least in C# the name of the variable has to be static to be able to deserialize the value into a class.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 9:28 am
by rkulagow
I'm not familiar with C#. Are you saying that it has to have something "anchoring" the sub-arrays?

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 11:21 am
by rkulagow
See if the updated call now does what you need it to do.