epggrab: fix configuration issues

This commit is contained in:
Adam Sutton 2013-11-30 14:38:19 +00:00
parent 8193c28d0b
commit fcc97df55c
3 changed files with 10 additions and 5 deletions

View file

@ -56,7 +56,12 @@ htsmsg_t *epggrab_module_list ( void )
LIST_FOREACH(m, &epggrab_modules, link) {
e = htsmsg_create_map();
htsmsg_add_str(e, "id", m->id);
htsmsg_add_u32(e, "type", m->type);
if (m->type == EPGGRAB_INT)
htsmsg_add_str(e, "type", "internal");
else if (m->type == EPGGRAB_EXT)
htsmsg_add_str(e, "type", "external");
else
htsmsg_add_str(e, "type", "ota");
htsmsg_add_u32(e, "enabled", m->enabled);
if(m->name)
htsmsg_add_str(e, "name", m->name);

View file

@ -709,7 +709,7 @@ static void _xmltv_load_grabbers ( void )
/* Internal search */
} else if ((tmp = getenv("PATH"))) {
tvhlog(LOG_DEBUG, "epggrab", "using internal grab search");
tvhdebug("epggrab", "using internal grab search");
char bin[256];
char desc[] = "--description";
char *argv[] = {

View file

@ -17,9 +17,9 @@ tvheadend.epggrab = function() {
/*
* Module lists (I'm sure there is a better way!)
*/
var EPGGRAB_MODULE_INTERNAL = 0;
var EPGGRAB_MODULE_EXTERNAL = 1;
var EPGGRAB_MODULE_OTA = 2;
var EPGGRAB_MODULE_INTERNAL = "internal";
var EPGGRAB_MODULE_EXTERNAL = "external";
var EPGGRAB_MODULE_OTA = "ota";
var moduleStore = new Ext.data.JsonStore({
root : 'entries',