From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:29:28 +0000 (+0200) Subject: HTSP: Expose service provider name with channel information. X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=267aef151ec30fa9c5469500100ab7f59092d39a;p=thirdparty%2Ftvheadend.git HTSP: Expose service provider name with channel information. --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 7102a9a87..4f17b5d2d 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -51,7 +51,7 @@ static void *htsp_server, *htsp_server_2; -#define HTSP_PROTO_VERSION 37 +#define HTSP_PROTO_VERSION 38 #define HTSP_ASYNC_OFF 0x00 #define HTSP_ASYNC_ON 0x01 @@ -906,6 +906,9 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp) if (t->s_hbbtv) htsmsg_add_msg(svcmsg, "hbbtv", htsmsg_copy(t->s_hbbtv)); + /* Provider */ + htsmsg_add_str2(svcmsg, "providername", t->s_provider_name(t)); + htsmsg_add_msg(services, NULL, svcmsg); }