]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dont expose disabled channels in htsinterface
authorAndreas Öman <andreas@lonelycoder.com>
Mon, 10 Dec 2007 10:40:11 +0000 (10:40 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Mon, 10 Dec 2007 10:40:11 +0000 (10:40 +0000)
htsclient.c

index 8a73401890153ef6bb81c428d2e3e1352cb8522f..aec800cea5f0bb0b993bc53746511865a57d90f0 100644 (file)
@@ -490,9 +490,11 @@ cr_channels_list(client_t *c, char **argv, int argc)
 {
   th_channel_t *ch;
 
-  LIST_FOREACH(ch, &channels, ch_global_link)
+  LIST_FOREACH(ch, &channels, ch_global_link) {
+    if(ch->ch_group == NULL)
+      continue;
     cprintf(c, "channel = %d\n", ch->ch_index);
-
+  }
   return 0;
 }