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

Niklas Brunlid prefect47 at gmail.com
Sat Sep 22 12:30:25 UTC 2007


Hi,

First post in the dev list, be nice. :)

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. 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?

/ Niklas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20070922/87adfe04/attachment.htm 


More information about the mythtv-dev mailing list