e = htsmsg_create_map();
htsmsg_add_str(e, "id", m->id);
if(m->name) htsmsg_add_str(e, "name", m->name);
- else printf("no name: %s\n", m->id);
if(m->path) htsmsg_add_str(e, "path", m->path);
htsmsg_add_u32(e, "flags", m->flags);
htsmsg_add_msg(a, NULL, e);
if (es) es = TAILQ_NEXT(es, link);
}
- if (es)
- while ( (es = TAILQ_NEXT(es, link)) ) {
+ if (es) {
+ do {
TAILQ_REMOVE(&epggrab_schedule, es, link);
save = 1;
- }
+ } while ( (es = TAILQ_NEXT(es, link)) );
+ }
return save;
}
if ( epggrab_module )
htsmsg_add_str(m, "module", epggrab_module->id);
htsmsg_add_msg(m, "schedule", _epggrab_schedule_serialize());
- htsmsg_print(m);
hts_settings_save(m, "epggrab/config");
htsmsg_destroy(m);
}
if(op == NULL)
return 400;
- printf("extjs_epggrab: %s\n", op);
-
pthread_mutex_lock(&global_lock);
if(http_access_verify(hc, ACCESS_ADMIN)) {
save |= epggrab_set_module_by_id(str);
if ( (str = http_arg_get(&hc->hc_req_args, "schedule")) ) {
if ( (array = htsmsg_json_deserialize(str)) ) {
- htsmsg_print(array);
save |= epggrab_set_schedule(array);
htsmsg_destroy(array);
}