Re: tv_grab_sd_json: Total number of episodes missing for many TV series

Kevin Groeneveld <[email protected]>
Newsgroups gmane.comp.tv.xmltv.devel
Message-ID <CABF+-6XQvQpH0708rNvJrVEdRydCYfmiBr-MWXySxOWvb1SDmA@mail.gmail.com>
Total episodes/seasons was only recently added to the SD-JSON data so it
has not had a lot of testing in the xmltv grabber.

I am a little confused about the example data you posted:

On Sat, Jun 4, 2016 at 10:53 AM, Finn Ellebaek Nielsen (Appatra Limited) <
[email protected]> wrote:

> Schecules Direct tv_grab_sd_json:
>
>
>
> <programme start="20160615203000 +0000" stop="20160615212500 +0000"
> channel="50059">
>
>   <title>Versailles</title>
>
>   ...
>
>   <episode-num system="xmltv_ns">0.2.</episode-num>
>
>   <episode-num system="dd_progid">EP023565850003</episode-num>
>
> </programme>
>
>
The above data has a program ID of EP023565850003.


>   According to Schecules Direct, the information is there in the source:
>
>
>
> {
>
>     "programID": "SH023565850000",
>
>     "resourceID": "12271345",
>
>     "titles": [
>
>         {
>
>             "title120": "Versailles"
>
>         }
>
> ],
>

But the above JSON has a program ID of SH023565850000.

If I download the data for EP023565850003 there is no totalEpisodes or
totalSeasons:

          {
            'showType' => 'Series',
            'titles' => [
                          {
                            'title120' => 'Versailles'
                          }
                        ],
            'programID' => 'EP023565850003',
            'metadata' => [
                            {
                              'Gracenote' => {
                                               'episode' => 3,
                                               'season' => 1
                                             }
                            }
                          ],

For the above "0.2." seems correct.

That being said, the current tv_grab_sd_json grabber ignores totalEpisodes
if episode=0 and ignores totalSeason if season=0.  So for the example JSON
you posted it would still not include the totals in the XML output.  In the
JSON 0 means the value is unknown, 0 in XMLTV means episode/season 1.

In another thread Robert Eden mentioned:
>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.

The example you posted has a SH* programID.  But since it does include
totalEpisode and totalSeason (even though season/episode are both
zero/unknown) it seems maybe these should be included in the XML.  Maybe
something like "/1./10.".  I am not sure if it is considered valid to leave
out the "X" in the "X/Y" notation.  The DTD has examples of just "X" but
not "/Y".

Kevin

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e

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