Re: tv_grab_sd_json: Total number of episodes missing for many TV series
"Finn Ellebaek Nielsen (Appatra Limited)" <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.devel |
|---|---|
| Message-ID | <[email protected]> |
I was told by SD that the SH record holds metadata about the series and that the EP record holds metadata about the episode and that you need to combine the two. I'm not aware whether the SH key is generic and there's supposed to be one record per season (with season = 1, season = 2 ... season = n) or whether it's specific to each season. If it's specific to each season I guess you can ignore season = 0 because you already know the season number from the episode information. Perhaps you need to work this out with SD. Here's an example of where totalEpisodes is included in the XMLTV: <programme start="20160616075500 +0000" stop="20160616083500 +0000" channel="47657"> <title>Jamie's Comfort Food</title> <sub-title>The Ultimate Cheese Toastie</sub-title> <category>Series</category> <category>series</category> <episode-num system="xmltv_ns">0.1/8.</episode-num> <episode-num system="dd_progid">EP019817390002</episode-num> </programme> From: Kevin Groeneveld [mailto:[email protected]] Sent: Sun 05 Jun 2016 01:00 To: [email protected] Subject: Re: [Xmltv-devel] tv_grab_sd_json: Total number of episodes missing for many TV series 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]<mailto:[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 ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ------------------------------------------------------------------------------ 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