Re: New fields on JSON service: "totalSeason", "totalEpisodes", "awards", "duration", "episodeImage"

Robert Eden <[email protected]>
Newsgroups gmane.comp.tv.xmltv.devel
Message-ID <[email protected]>
On 5/23/2016 7:56 PM, Kevin Groeneveld wrote:
> >(numbers except totals are zero based)
>
> I am not sure if it was always like this or not but I just noticed 
> some programs in the JSON feed have "0" for the episode and/or 
> season.  Since the XMTLV values are zero based what should be put in 
> the XML for this case?  "-1" seems wrong, "0" would be ambiguous.  I 
> guess this field should just be left blank in this case?
>
> For example:
>
> 'programID' => 'SH011924320000',
>                                                 'metadata' => [
>                                                                 {
> 'Gracenote' => {
> 'totalEpisodes' => 178,
> 'episode' => 0,
> 'season' => 0,
> 'totalSeasons' => 23
> }
>                                                                 }
>                                                               ],
>

as mentioned, zeros are invalid data so nothing should be output.
Also note the programID of SH*  you shouldn't generate xmltv_ns data for 
SH* programs because the SH* means Gracenote doesn't know any details.

Have you been added as a dev so you can commit to CVS?  If  not, post 
(or email) your SF login and I'll add you.  You can take the ball :)

So, when Internet was down, did you feel like those commercials?

Robert

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

_______________________________________________
xmltv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltv-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.