Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Re: mythfilldatabase/fillData() doesn't handle tv_grab_combiner well

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


mtdean at thirdcontact

Sep 22, 2007, 9:22 AM

Post #1 of 2 (740 views)
Permalink
Re: mythfilldatabase/fillData() doesn't handle tv_grab_combiner well

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

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

Yep.

> 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." :)

Mike

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


prefect47 at gmail

Sep 22, 2007, 12:17 PM

Post #2 of 2 (693 views)
Permalink
Re: mythfilldatabase/fillData() doesn't handle tv_grab_combiner well [In reply to]

On 9/22/07, Michael T. Dean <mtdean [at] thirdcontact> wrote:
>
> On 09/22/2007 08:30 AM, Niklas Brunlid wrote:
>

<snip>

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


I see that now. That would be the lines

if (currentChanCount < (prevChanCount * 0.90))
{
...
download_needed = true;
}

...which in my case wouldn't be triggered, since grabber 2 provides only two
channels, and grabber 1 provides 13 ( floor(15 * 0.90) == 13 ).

What is the reason for the 0.90? Bandwidth control for the data providers in
case they happen to occasionally fail to provide data for one or two
channels? Seems reasonable for the USA, where most people seem to have 100+
channels or something... ;)

> But that would mean that grabber

> > 1 above would grab days 7-14 for no good reason, right?
>
> Yep.


Fair enough. No problem for me, my bandwidth is fixed-cost. :)


> > 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." :)


The script is tv_grab_combiner and is part of xmlTV, available from the
MythTV configuration in the frontend.

How do you ask the grabber for this information?

/ Niklas

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.