Skip to content

Commit f9d5e88

Browse files
DeltaMikeCharlieFlole998
authored andcommitted
Add full UUID to channel, chTag and dvrEntry.
1 parent dd82541 commit f9d5e88

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎src/htsp_server.c‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,11 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp)
869869
htsmsg_t *services = htsmsg_create_list();
870870

871871
htsmsg_add_u32(out, "channelId", channel_get_id(ch));
872+
873+
if (htsp->htsp_version > 40){
874+
htsmsg_add_str(out, "channelIdStr", idnode_uuid_as_str(&ch->ch_id, buf));
875+
}
876+
872877
htsmsg_add_u32(out, "channelNumber", channel_get_major(chnum));
873878
if (channel_get_minor(chnum))
874879
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
934939
htsmsg_t *members = include_channels ? htsmsg_create_list() : NULL;
935940

936941
htsmsg_add_u32(out, "tagId", htsp_channel_tag_get_identifier(ct));
942+
943+
if (htsp->htsp_version > 40){
944+
htsmsg_add_str(out, "tagIdStr", idnode_uuid_as_str(&ct->ct_id, buf));
945+
}
946+
937947
htsmsg_add_u32(out, "tagIndex", ct->ct_index);
938948

939949
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
970980

971981
htsmsg_add_u32(out, "id", idnode_get_short_uuid(&de->de_id));
972982

983+
if (htsp->htsp_version > 40){
984+
htsmsg_add_str(out, "idStr", idnode_uuid_as_str(&de->de_id, ubuf));
985+
}
986+
973987
if (!statsonly) {
974988
htsmsg_add_u32(out, "enabled", de->de_enabled >= 1 ? 1 : 0);
975989
if (de->de_channel)

0 commit comments

Comments
 (0)