[mythtv] mythfilldatabase/fillData() doesn't handle tv_grab_combiner well

Michael T. Dean mtdean at thirdcontact.com
Sat Sep 22 16:22:22 UTC 2007

On 09/22/2007 08:30 AM, Niklas Brunlid wrote:
> I'm having problems using multiple grabbers through tv_grab_combiner:
>  * Grabber 1 (tv_grab_swedb) gives 14 days worth of data.
>  * Grabber 2 (tv_grab_dk) gives 6 days.
> The problem is that one the first mythfilldatabase has been run (on an empty
> "program" table), only "today" and "tomorrow" are refreshed for grabber 2.
> I've looked at the fillData() code and it doesn't handle the case where some
> channels have 0 programs for a specific day where other channels have >0,
> which will be the case when using more than one grabber and where the
> grabbers don't givethe same number of days worth of data.
> Specifically, fillData() counts the total number of programs in "program"
> for a 24hr period, ignoring specific channel info. Is this a known problem?
> An easy solution would be to add a check to see if >0 channels have 0
> programs, and force a refresh in that case.

If I understand what you're saying, that's exactly what happens in SVN

>  But that would mean that grabber
> 1 above would grab days 7-14 for no good reason, right?


>  And there is no way
> for MythTV to know how much data the grabbers can deliver for a specific
> channel?

If you use the grabber directly, it should.  When using a script that
includes tv_grab_combiner, your script should know the details and "do
the right thing." :)


More information about the mythtv-dev mailing list