From: Jaroslav Kysela Date: Tue, 1 Jan 2019 16:20:25 +0000 (+0100) Subject: xmltv export: add LCN to the display-name attribute, fixes #5471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb8a25ca8b2e2e48b6b76f833f0bf96dde37c896;p=thirdparty%2Ftvheadend.git xmltv export: add LCN to the display-name attribute, fixes #5471 --- diff --git a/src/webui/xmltv.c b/src/webui/xmltv.c index f6ca90a33..6dec81d5c 100644 --- a/src/webui/xmltv.c +++ b/src/webui/xmltv.c @@ -68,10 +68,22 @@ http_xmltv_channel_add(htsbuf_queue_t *hq, const char *hostpath, channel_t *ch) { const char *icon = channel_get_icon(ch); char ubuf[UUID_HEX_SIZE]; + int64_t lcn; htsbuf_qprintf(hq, "\n ", idnode_uuid_as_str(&ch->ch_id, ubuf)); htsbuf_append_and_escape_xml(hq, channel_get_name(ch, "")); htsbuf_append_str(hq, "\n"); + lcn = channel_get_number(ch); + if (lcn > 0) { + if (channel_get_minor(lcn)) { + htsbuf_qprintf(hq, " %u.%u\n", + channel_get_major(lcn), + channel_get_minor(lcn)); + } else { + htsbuf_qprintf(hq, " %u\n", + channel_get_major(lcn)); + } + } if (icon) { int id = imagecache_get_id(icon); if (id) {