]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
allow clients to properly seperate tv/radio channels and recordings adjustment
authorGlenn-1990 <g_christiaensen@msn.com>
Wed, 13 Apr 2016 19:55:18 +0000 (21:55 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 17 Apr 2016 17:16:31 +0000 (19:16 +0200)
src/htsp_server.c

index 59a9233be7e22757086fd0bfd8abab62aadea8f2..a0d101de3e4dc7e613f3c46ad559d4213ba86f89 100644 (file)
@@ -830,10 +830,12 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp)
     t = (service_t *)ilm->ilm_in1;
     htsmsg_t *svcmsg = htsmsg_create_map();
     htsmsg_add_str(svcmsg, "name", service_nicename(t));
+
+    /* Service type string, i.e. UHD, HD, Radio,... */
     htsmsg_add_str(svcmsg, "type", service_servicetype_txt(t));
 
-    /* The client may wants to separate radio and tv, none = 0x00, radio = 0x01, tv = 0x02 */
-    htsmsg_add_u32(svcmsg, "serviceType", service_is_tv(t) ? 0x02 : (service_is_radio(t) ? 0x01 : 0x00));
+    /* Service content, other = 0x00, tv = 0x01, radio = 0x02 */
+    htsmsg_add_u32(svcmsg, "content", service_is_tv(t) ? 0x01 : (service_is_radio(t) ? 0x02 : 0x00));
 
     if (service_is_encrypted(t)) {
       htsmsg_add_u32(svcmsg, "caid", 65535);