From: David Kalnischkies Date: Fri, 17 Jan 2025 01:43:08 +0000 (+0000) Subject: Show details dialog for encrypted services even if we have no cards X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73982782d46497296730326bab3a8bbd0498b0c9;p=thirdparty%2Ftvheadend.git Show details dialog for encrypted services even if we have no cards --- diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index 6834b002e..f5ba4e617 100644 --- a/src/webui/static/app/mpegts.js +++ b/src/webui/static/app/mpegts.js @@ -190,11 +190,15 @@ tvheadend.show_service_streams = function(data) { html += '' + (s.language || ' ') + ''; if (s.type === 'CA' || s.type === 'CAT') { d = _('CAIDS: '); - for (j = 0; j < s.caids.length; j++) { - if (j > 0) - d += ', '; - d += hexstr(s.caids[j].caid) + ':'; - d += hexstr6(s.caids[j].provider); + if (s.caids === undefined) { + d += 'none'; + } else { + for (j = 0; j < s.caids.length; j++) { + if (j > 0) + d += ', '; + d += hexstr(s.caids[j].caid) + ':'; + d += hexstr6(s.caids[j].provider); + } } } html += '' + d + '';