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

Kevin Groeneveld <[email protected]>
Newsgroups gmane.comp.tv.xmltv.devel
Message-ID <CABF+-6VcW5g-jYXrTb2Ze53G2FE=XOmf7YBveCBtOYjHtB3h+g@mail.gmail.com>
>(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

}
                                                                }
                                                              ],

Should the XML then be "/23./178"?


Kevin

------------------------------------------------------------------------------
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.