From: Glenn-1990 Date: Wed, 13 Apr 2016 19:55:18 +0000 (+0200) Subject: allow clients to properly seperate tv/radio channels and recordings adjustment X-Git-Tag: v4.2.1~645 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6dbecb9af8865bd34e90cd86f33fa7d042184c40;p=thirdparty%2Ftvheadend.git allow clients to properly seperate tv/radio channels and recordings adjustment --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 59a9233be..a0d101de3 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -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);