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-Tag: v4.2.8~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a79f838e87314d5c084ba516d25cb6e9b6132922;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 5c45ee8a6..6f7d40ed4 100644 --- a/src/webui/xmltv.c +++ b/src/webui/xmltv.c @@ -66,10 +66,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) { if (strncmp(icon, "imagecache/", 11) == 0) htsbuf_qprintf(hq, "