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

Robert Kulagowski <[email protected]>
Newsgroups gmane.comp.tv.xmltv.devel
Message-ID <CAGe0w3Ty8N8v_i6VKm1nWk8QPvMdx4O=brKpiApvdBEAJyMBQA@mail.gmail.com>
Take a look at the similarities between these two:

EP023565850003

SH023565850000

In an EP, the last 4 digits are typically used as an episode number,
but don't correlate to S/E, or broadcast order, or anything that means
anything externally. In an SH, they will be "0000".

"EP" means that there is specific information for _this_ episode. It
will have guest stars, S/E, plot description for this episode, etc.

"SH" is the Show record. If we don't know specifics, because the
broadcaster hasn't shared it yet, but we know that _an_ episode of the
program is playing 3 weeks from now, there will be an SH record as a
placeholder. But, "SH" records are also used to store metadata about
the series, such as the total number of episodes. It will have
information about "you may also like..." recommendations.

So the middle set of characters after the first two and before the
last 4 are specific to the series.

If you want to know the total number of episodes for an EP, then you
need to pull the SH record. You can programatically determine the SH
record programID based on the above pattern and description.

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