From d956eda22c27683f92a665f36e610b70a21b1630 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 23 Apr 2014 22:18:50 +0200 Subject: [PATCH] Show the CAIDs in hex in the service info dialog plus add the provider number --- src/webui/static/app/mpegts.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index 8e8b7107..1dedd02a 100644 --- a/src/webui/static/app/mpegts.js +++ b/src/webui/static/app/mpegts.js @@ -112,6 +112,10 @@ tvheadend.show_service_streams = function ( data ) { return ('0000' + d.toString(16)).slice(-4); } + function hexstr6 ( d ) { + return ('000000' + d.toString(16)).slice(-6); + } + function fixstr ( d ) { var r = d.toString(); var l = r.length; @@ -135,7 +139,9 @@ tvheadend.show_service_streams = function ( data ) { if (s.type == 'CA') { d = 'CAIDS: '; for (j = 0; j < s.caids.length; j++) { - d += s.caids[j].caid + ', '; + if (j > 0) d += ', '; + d += hexstr(s.caids[j].caid) + ':'; + d += hexstr6(s.caids[j].provider); } } html += '' + d + ''; @@ -145,7 +151,7 @@ tvheadend.show_service_streams = function ( data ) { var win = new Ext.Window({ title : 'Service details for ' + data.name, layout : 'fit', - width : 600, + width : 650, height : 300, plain : true, bodyStyle : 'padding: 5px',