[mythtv] [PATCH] filldata.cpp improve logic for incomplete days
Kyle Kelly
elykyllek at gmail.com
Sun Sep 26 21:18:28 EDT 2004
On Sun, 26 Sep 2004 16:32:04 -0600, Mailing Lists <mail_lists at shaw.ca> wrote:
> At 09/26/2004 01:30 PM, you wrote:
> >Mailing Lists wrote:
> >
> >>This patch better identifies which days have incomplete data. The
> >>previous code did not work for me because 14/53 of my channels were
> >>filled. This way, if any channels are incomplete, it triggers a
> >>re-download. I have only tested this with a single lineup using the
> >>datadirect service, so someone with multiple sourceid's (lineups) should
> >>make sure this will work properly. I _think_ it should. I did not
> >>adjust the logic for the tv_grab_nz code, but if it should be changed,
> >>let me know.
> >
> >
> >Out of curiousity, how do you end up in this situation in the first
> >place? Just curious because I was talking about it to Ed Avis (xmltv)
> >
> >Ed W
>
>
> At least with the datadirect service, the last day or two contain
> incomplete data. For me, most of my channels on those days have scheduling
> up to 6pm, and 14 of them have complete schedules. With the current
> mythfilldatabase code, these days don't trigger as being incomplete, so the
> channels are not updated until the automatic refresh of today's and
> tomorrow's data. It also means that after 12 days, all of my data beyond
> tomorrow is incomplete. As a work around up to now, every week or so I
> would just delete the program table, and reload all the data, but this is
> an inelegant solution.
>
> It appears that the current check code depends on an arbitrary number of
> "hits" and my database exceeds the threshold. The code that I wrote simply
> checks that for each day, the number of channels is equal to the number of
> shows that end at or after midnight. (for me that is sufficient, because I
> don't appear to have "holes" in the schedule, it simply runs out of data early)
>
> Joe
>
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
>
>
I noticed your email is from shaw.ca, which is interesting since I
live in Nova Scotia and have a similar if not exactly the same
problem. The solution pointed out to me on the mythtv-users list is
to edit the file programs/mythfilldatabase/filldata.cpp and change the
number 18 on line 2583 to a 21. I wonder if this is a Canadian
problem, and if so could code be written to automatically resolve the
problem.
More information about the mythtv-dev
mailing list