]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Some minor bugfixes and remove debug code.
authorAdam Sutton <dev@adamsutton.me.uk>
Wed, 6 Jun 2012 15:07:15 +0000 (16:07 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Wed, 6 Jun 2012 15:07:15 +0000 (16:07 +0100)
src/epggrab.c
src/webui/extjs.c

index 8576f48c72a2a9bcd7ad9ef6a8239bf3f185e5f8..e21eba1221060622b6d091dff05ed150e1270f68 100644 (file)
@@ -142,7 +142,6 @@ htsmsg_t *epggrab_module_list ( void )
     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);
@@ -231,11 +230,12 @@ static int _epggrab_schedule_deserialize ( htsmsg_t *a )
     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;
 }
@@ -292,7 +292,6 @@ void epggrab_save ( void )
   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);
 }
index fdf8ccb8497f117205334fa3e4c4c556a8f9840d..49d644300cff5ffaa3a778e9fd7a42778f9aa82e 100644 (file)
@@ -475,8 +475,6 @@ extjs_epggrab(http_connection_t *hc, const char *remain, void *opaque)
   if(op == NULL)
     return 400;
 
-  printf("extjs_epggrab: %s\n", op);
-
   pthread_mutex_lock(&global_lock);
 
   if(http_access_verify(hc, ACCESS_ADMIN)) {
@@ -534,7 +532,6 @@ extjs_epggrab(http_connection_t *hc, const char *remain, void *opaque)
       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);
       }