]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add full UUID to channel, chTag and dvrEntry.
authorDeltaMikeCharlie <127641886+DeltaMikeCharlie@users.noreply.github.com>
Mon, 2 Sep 2024 05:01:37 +0000 (15:01 +1000)
committerFlole <Flole998@users.noreply.github.com>
Fri, 6 Sep 2024 09:04:39 +0000 (11:04 +0200)
src/htsp_server.c

index ffa6746b09103de4a74aea5337d81ced30f3d3e6..cb5fd646330f1817bd366f7a740d60bf79f8f1ab 100644 (file)
@@ -869,6 +869,11 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp)
   htsmsg_t *services = htsmsg_create_list();
 
   htsmsg_add_u32(out, "channelId", channel_get_id(ch));
+
+  if (htsp->htsp_version > 40){
+    htsmsg_add_str(out, "channelIdStr", idnode_uuid_as_str(&ch->ch_id, buf));
+  }
+
   htsmsg_add_u32(out, "channelNumber", channel_get_major(chnum));
   if (channel_get_minor(chnum))
     htsmsg_add_u32(out, "channelNumberMinor", channel_get_minor(chnum));
@@ -934,6 +939,11 @@ htsp_build_tag(htsp_connection_t *htsp, channel_tag_t *ct, const char *method, i
   htsmsg_t *members = include_channels ? htsmsg_create_list() : NULL;
 
   htsmsg_add_u32(out, "tagId", htsp_channel_tag_get_identifier(ct));
+
+  if (htsp->htsp_version > 40){
+    htsmsg_add_str(out, "tagIdStr", idnode_uuid_as_str(&ct->ct_id, buf));
+  }
+
   htsmsg_add_u32(out, "tagIndex", ct->ct_index);
 
   htsmsg_add_str(out, "tagName", ct->ct_name);
@@ -970,6 +980,10 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method
 
   htsmsg_add_u32(out, "id", idnode_get_short_uuid(&de->de_id));
 
+  if (htsp->htsp_version > 40){
+    htsmsg_add_str(out, "idStr", idnode_uuid_as_str(&de->de_id, ubuf));
+  }
+
   if (!statsonly) {
     htsmsg_add_u32(out, "enabled", de->de_enabled >= 1 ? 1 : 0);
     if (de->de_channel)