Fix mistake in config conversion that stops modules being enabled at startup.

This commit is contained in:
Adam Sutton 2012-06-17 14:53:40 +01:00
parent dde3d12189
commit 53cab33e72

View file

@ -666,7 +666,7 @@ static void _epggrab_load ( void )
htsmsg_get_u32(m, "eit", &epggrab_eitenabled);
if (!htsmsg_get_u32(m, old ? "grab-interval" : "interval", &epggrab_interval))
if (old) epggrab_interval *= 3600;
if ( !htsmsg_get_u32(m, "grab-enabled", &enabled) )
htsmsg_get_u32(m, "grab-enabled", &enabled);
if (enabled) {
if ( (str = htsmsg_get_str(m, old ? "current-grabber" : "module")) )
epggrab_module = epggrab_module_find_by_id(str);