]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Added encryption column to configuration->TV Adapters->Services. Added additional... 204/head
authorJason Millard <jsm174@gmail.com>
Mon, 31 Dec 2012 00:10:14 +0000 (19:10 -0500)
committerJason Millard <jsm174@gmail.com>
Mon, 31 Dec 2012 00:11:25 +0000 (19:11 -0500)
src/dvb/dvb_service.c
src/psi.c
src/webui/static/app/dvb.js

index 65b7fbf5e1a1348eecf5f00ad783568d7f6bf40e..31f1b9e7cf82513f80590b11e8e18912eb5c70f7 100644 (file)
@@ -447,6 +447,7 @@ dvb_service_build_msg(service_t *t)
 {
   th_dvb_mux_instance_t *tdmi = t->s_dvb_mux_instance;
   htsmsg_t *m = htsmsg_create_map();
+  uint16_t caid;
   char buf[100];
  
   htsmsg_add_str(m, "id", t->s_identifier);
@@ -464,6 +465,9 @@ dvb_service_build_msg(service_t *t)
 
   htsmsg_add_str(m, "network", tdmi->tdmi_network ?: "");
 
+  if((caid = service_get_encryption(t)) != 0)
+    htsmsg_add_str(m, "encryption", psi_caid2name(caid));
+
   dvb_mux_nicefreq(buf, sizeof(buf), tdmi);
   htsmsg_add_str(m, "mux", buf);
 
index 4d49ca718de6ad9ffa7a4136aff182c0d4c433e6..07f7d3cdd94406cfa5602e9d9d0ade8a44930ea5 100644 (file)
--- a/src/psi.c
+++ b/src/psi.c
@@ -874,6 +874,7 @@ static struct strtab caidnametab[] = {
   { "CryptoWorks ICE", 0x0D96 },
   { "CryptoWorks ICE", 0x0D97 },
   { "PowerVu",          0x0E00 }, 
+  { "PowerVu",          0x0E11 }, 
   { "Sony",             0x0F00 }, 
   { "Tandberg",         0x1000 }, 
   { "Thompson",         0x1100 }, 
index 0f1b836f52ffcdfa479af2eb7c265b0b98c3dbf9..c3a3f31455f41ff67e08c066e089e443cfa44b55 100644 (file)
@@ -497,6 +497,10 @@ tvheadend.dvb_services = function(adapterId) {
                        header : "Network",
                        dataIndex : 'network',
                        width : 100
+               }, {
+                       header : "Encryption",
+                       dataIndex : 'encryption',
+                       width : 100
                }, {
                        header : "Multiplex",
                        dataIndex : 'mux',
@@ -526,8 +530,8 @@ tvheadend.dvb_services = function(adapterId) {
        var store = new Ext.data.JsonStore({
                root : 'entries',
                fields : Ext.data.Record.create([ 'id', 'enabled', 'type', 'sid', 'pmt',
-                       'pcr', 'svcname', 'network', 'provider', 'mux', 'channelname', 'prefcapid',
-                       'dvb_charset', 'dvb_eit_enable' ]),
+                       'pcr', 'svcname', 'network', 'provider', 'encryption', 'mux', 'channelname',
+                       'prefcapid', 'dvb_charset', 'dvb_eit_enable' ]),
                url : "dvb/services/" + adapterId,
                autoLoad : true,
                id : 'id',