From 267aef151ec30fa9c5469500100ab7f59092d39a Mon Sep 17 00:00:00 2001 From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:29:28 +0200 Subject: [PATCH] HTSP: Expose service provider name with channel information. --- src/htsp_server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.47.2