]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Show details dialog for encrypted services even if we have no cards
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 17 Jan 2025 01:43:08 +0000 (01:43 +0000)
committerFlole <Flole998@users.noreply.github.com>
Tue, 9 Sep 2025 18:31:51 +0000 (20:31 +0200)
src/webui/static/app/mpegts.js

index 6834b002e9133dee68ae07a70784d82a205dd950..f5ba4e617f9e320b2ada927812775ad85be6bade 100644 (file)
@@ -190,11 +190,15 @@ tvheadend.show_service_streams = function(data) {
         html += '<td>' + (s.language || '&nbsp;') + '</td>';
         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 += '<em>none</em>';
+            } 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 += '<td>' + d + '</td>';