Re: Automatically notifying about SD-JSON lineup changes

Gary Buhrmaster <[email protected]>
Newsgroups gmane.comp.tv.xmltv.devel
Message-ID <CAMfXtQwqYYS5tjkfDY7MaGj5JaRPcjyzaGprVHjJc+1BREYzCA@mail.gmail.com>
On Wed, Jul 6, 2016 at 1:07 PM, John Veness
<[email protected]> wrote:

> I realise this is a big problem, as in many case this would require
> retuning, although not in this particular case. But if nothing else, it
> would be good for the grabber (and mythfilldatabase) to inform the user
> about the lineup change, based on the modified date.

There are a couple of issues here, but for various
reasons, for some of my lineups (US based)
the lineups change quite regularly (at least for
some lineups), some of the changes seem to
be essentially "background", so you would
likely get too many notifications.  For some
that would be goodness, for others annoyance.

It should be noted there is no current method that
mfdb has that would notify you of changes.  It just
runs the grabber and takes the results.  There is
nothing in the xml that supports a lineup last
updated date (only a date for when the xml was
generated), and nothing in the mythtv database
that stores that (so it could report something).
An xml dtd update would be needed to optionally
provide that additional information to mfdb, and
then you can submit patches to the mythtv project
to use it.

However, the base issue is that the channel changed
the xmltv id, for which there is currently no
automated way to reliably fix (or initially generate
the matches) although mfdb channel updates will
sometimes do so for some lineups/providers if
one does not disable channel updates (the attempts
at matching sometimes work for some changes
for some lineups).

I happen to believe that better long term (for the mfdb
case) is for mfdb to automate configuration and
detect changes via --get-lineup, and --list-channels
but that requires changes to mfdb to process that data.
AFAIK no one is currently working on that (it is probably
on some wish list).

As an interim solution (which you can do now),
outside of the mfdb usage cases, perhaps you
should save the output of the grabbers --list-channels
output and compare on a regular basis.  If the
output has changed, you need to do some research.

Indirectly, for tv_grab_na_sd, the (non-quiet) output
displays when it is downloading updated lineups,
but that was never a primary purpose of the message.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
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.