[mythtv] [PATCH] mythfilldatabase better? check for missing data

Tony Lill ajlill at ajlc.waterloo.on.ca
Tue Oct 5 18:14:44 UTC 2004


The current mytfilldatabase finds the channel with the most start
times between 6pm and midnight, and if that number is less than 10,
refetches the data. This can fail in two ways that I can think of.

The one that hit me is that on the last day of available data, half my
channels are missing data in primetime. Since there is at least one
channel with enough half-hour programs to satisfy the test, this
missing data would stick around until the "always refresh tomorrow"
condition would hit. My original fix was to add a command line option
to set the max days to fetch.

The other failure mode is if no channel has at least 10 start
times. This explains why mythfilldatabase would always re-fetch
Saturday, but could get pathological of you had a lineup with only
movie channels.

This patch, changes mythfilldatabase to compare the number of channels
with starttimes between 8pm and midnight with the total number of
channels in the lineup. Unfortunately this will probably refetch
constantly if you have channels that are off the air in primetime.

Maybe someone can find a way to get the best of both methods, or maybe
just a cammand line switch to choose. Anyway this will help anyone
with the misfortune of being a Rogers customer. It's against 0.16
--
Tony Lill,                         Tony.Lill at AJLC.Waterloo.ON.CA
President, A. J. Lill Consultants        fax/data (519) 650 3571
539 Grand Valley Dr., Cambridge, Ont. N3H 2S2     (519) 241 2461
--------------- http://www.ajlc.waterloo.on.ca/ ----------------
"Welcome to All Things UNIX, where if it's not UNIX, it's CRAP!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 7484 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041005/6560212a/patch.obj


More information about the mythtv-dev mailing list