[mythtv] Ticket #1656: mythfilldatabase has problems with crappy canadian listings

Tony Lill ajlill at ajlc.waterloo.on.ca
Fri Aug 18 18:04:23 UTC 2006


Stuart Morgan <stuart at tase.co.uk> writes:

> On Friday 18 August 2006 15:45, MythTV wrote:
>> #1656: mythfilldatabase has problems with crappy canadian listings
>>
>>  Is this patch really needed? I have the same problem but I just run
>>  mythfilldatabase with a "--max-days 11" argument.
>
> I think it just complicates mythfilldatabase when we should be doing the 
> opposite. This sort of thing is best handled by the grabber.
>
> Maintaining code for special cases is never-ending and Myth's development 
> cycle just isn't fast enough to keep up with changes.
>
> I'm already working on simplifying mythfilldatabase as a result of the 
> improvements and standardisation of the xmltv grabbers. Ideally this should 
> eliminate most of the special case handling for different grabbers and the 
> need for any arguments to be passed in.

If you want to simplify it, just use my method exclusively. It's less
complicated than all the extra checks that went between 0.18 and 0.19,
and works better IMHO. I did it as an additional check to make the patch
more acceptable. 

The whole point that the "right" way to decide if you need to reload
data is if more than N channels don't have a program starting during
"prime-time", where I've set N = 0 and prime-time to be 20:00 -
midnight (shouldn't have hardcoded those, though).

All this guessing based on counts and deltas is always going to fail
for someone. I spent a while fiddleing with the values (that's why
they're settable from the command line), but eventually gave up.
--
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!"


More information about the mythtv-dev mailing list