From: Jaroslav Kysela Date: Wed, 23 Apr 2014 20:18:50 +0000 (+0200) Subject: Show the CAIDs in hex in the service info dialog plus add the provider number X-Git-Tag: v4.1~2116^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d956eda22c27683f92a665f36e610b70a21b1630;p=thirdparty%2Ftvheadend.git Show the CAIDs in hex in the service info dialog plus add the provider number --- diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index 8e8b7107c..1dedd02a3 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',