[mythtv-users] upnpmedia polling

Chris Pinkham cpinkham at bc2va.org
Mon Jan 28 15:36:29 UTC 2008

* On Mon Jan 28, 2008 at 01:46:30AM -0400, Greg Estabrooks wrote:
>  It's used for upnp media streaming of mythvideo content.  If it doesn't
> check for new videos placed in your video directory tree then it would 
> never see anything newly added until the next time you restart the backend.

It would be nice if this was automatically enabled and disabled.  By default
have the scan off.  Once the backend receives a UPNP request, then the timer
starts firing (the first time it runs ASAP, then back to its regular schedule).
If the backend hasn't received a UPNP request for XX minutes then turn the
timer off until the next UPNP hit.

Or, you could just set the timer to fire once at X seconds after every UPNP
hit.  If the timer is already set, then don't reset it, just let it happen
at the already-set time.  This way it only ever runs if someone is using UPNP,
and doesn't run longer than necessary, since it only runs once after the user
stops hitting the UPNP server.  On the first UPNP hit, you could fire off the
scanner immediately, but on subsequent hits schedule the timer for X seconds.

I think the second would be preferable to most people since it is the least


More information about the mythtv-users mailing list