Re: New fields on JSON service: "totalSeason", "totalEpisodes", "awards", "duration", "episodeImage"
Nick Morrott <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.devel |
|---|---|
| Message-ID | <CAOQWjw244BSD7J0U9diPpe23dpnMGQ90YnGtyWjYCO_jAKFmHw@mail.gmail.com> |
On 24 May 2016 at 01:56, Kevin Groeneveld <[email protected]> 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 > > } > } > ], > > Should the XML then be "/23./178"? There's no support in the xmltv_ns scheme for episode/season 0 (whatever that means? :) ) The xmltv_ns scheme uses "current season/total seasons" and "episode of current season/total episodes in current season". Iff there were 178 episodes in the *current* season, the data is valid under the xmltv_ns scheme; the relevant dtd section states "If any of these aren't known they can be omitted" However, without the current season/episode numbering available for a programme I'm not sure how useful a consuming application would find just the series totals. Note that you do not have to use the xmltv_ns scheme - you can define and use your own, but with most end-user software using the xmltv_ns scheme it would probably be a good idea to use that if you can. If you look at the xmltv.dtd you'll see a few other numbering schemes were proposed a few years back but I'm not sure how many grabbers (both internal and external to the XMLTV Project) deviate from the "standard" xmltv_ns scheme. Cheers, Nick ------------------------------------------------------------------------------ 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