]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
HTSP: Expose service provider name with channel information.
authorksooo <3226626+ksooo@users.noreply.github.com>
Thu, 22 Aug 2024 14:29:28 +0000 (16:29 +0200)
committerFlole <Flole998@users.noreply.github.com>
Thu, 22 Aug 2024 20:34:55 +0000 (22:34 +0200)
src/htsp_server.c

index 7102a9a870c3fb550c38360357be01ecc14fe13e..4f17b5d2d79a04b6d6b2271f13a282ef229f5fe1 100644 (file)
@@ -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);
   }