diff --git a/lsp/functions.js b/lsp/functions.js index b6b24203..483882ec 100644 --- a/lsp/functions.js +++ b/lsp/functions.js @@ -153,7 +153,7 @@ "command": JSON.stringify(data) }, 'dataType': 'jsonp', - 'timeout': 10000, + 'timeout': 300000, 'error': function(){}, 'success': function(d) { @@ -400,7 +400,9 @@ "capabilities": {}, "log": {}, "statistics": {}, - "conversion": {} + "conversion": { + "status" : "" + } }, d) if (settings.settings.LTS == 1) { $('.LTSonly').show(); @@ -738,15 +740,20 @@ function buildLogsTable(){ if (!settings.settings.conversion.query) { settings.settings.conversion.query = {}; } settings.settings.conversion.query.path = query; $('#conv-edit-dir').val(query); + $('#conversiondirquery-status').text(' Searching for input files..'); getData(function(data){ var c = data.conversion.query; var j = 0; + var dir = $('#conv-edit-dir').val(); + if (dir.substr(dir.length -1) != '/') { dir += '/'; } delete settings.settings.conversion.query; $('#conv-edit-input').html(''); for (var i in c) { - if (c[i]) { + var ext = i.split('.'); + ext = ext[ext.length-1]; + if ((c[i] == null) && (ext != 'dtsc')) { $('#conv-edit-input').append( - $('').val($('#conv-edit-dir').val()+i).text(i) + $('').val(dir+i).text(i) ); j++; } @@ -757,7 +764,7 @@ function buildLogsTable(){ ) } conversionSelectInput($('#conv-edit-input').val()); - + $('#conversiondirquery-status').text(''); }); } function conversionSelectInput(filename) { diff --git a/lsp/main.js b/lsp/main.js index 1c9911c1..4ccb78d4 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -887,7 +887,10 @@ 'preset': { 'cmd': '' - } + }, + 'contentkey':'', + 'keyid':'', + 'keyseed':'' },sdata); $('#page').append( $('').text(title) ); @@ -933,6 +936,31 @@ ) ); + // ENCRYPT + $('#editserver').append( + $('').addClass('LTS-only').append( + $('') + ).append( + $('').text('Encrypt this stream') + ).append( + $('').attr('id','stream-edit-contentkey-label').attr('for','stream-edit-contentkey').text('Content key').append( + $('').attr('type','text').attr('id','stream-edit-contentkey').attr('value', sdata.contentkey) + ) + ).append( + $('').text('- or -') + ).append( + $('').attr('id','stream-edit-keyid-label').attr('for','stream-edit-keyid').text('Key ID').append( + $('').attr('type','text').attr('id','stream-edit-keyid').attr('value', sdata.keyid) + ) + ).append( + $('').attr('id','stream-edit-keyseed-label').attr('for','stream-edit-keyseed').text('Key seed').append( + $('').attr('type','text').attr('id','stream-edit-keyseed').attr('value', sdata.keyseed) + ) + ).append( + $('') + ) + ); + var text = $('#stream-edit-source').val(); //if the source is not live, show any stuff marked as live-only if(text.charAt(0) == '/') @@ -984,6 +1012,9 @@ sdata.error = null; sdata.record = r.val(); if (b.val() != '') { sdata.DVR = b.val(); } + sdata.contentkey = $('#stream-edit-contentkey').val(); + sdata.contentkey = $('#stream-edit-keyid').val(); + sdata.contentkey = $('#stream-edit-keyseed').val(); if(streamname == 'new') { @@ -1340,6 +1371,8 @@ $('').text('search for input files').click(function(){ conversionDirQuery($('#conv-edit-query').val()); }) + ).append( + $('').attr('id','conversiondirquery-status') ).append( $('').attr('id', 'editconversion') );
').text(title) ); @@ -933,6 +936,31 @@ ) ); + // ENCRYPT + $('#editserver').append( + $('').addClass('LTS-only').append( + $('') + ).append( + $('').text('Encrypt this stream') + ).append( + $('').attr('id','stream-edit-contentkey-label').attr('for','stream-edit-contentkey').text('Content key').append( + $('').attr('type','text').attr('id','stream-edit-contentkey').attr('value', sdata.contentkey) + ) + ).append( + $('').text('- or -') + ).append( + $('').attr('id','stream-edit-keyid-label').attr('for','stream-edit-keyid').text('Key ID').append( + $('').attr('type','text').attr('id','stream-edit-keyid').attr('value', sdata.keyid) + ) + ).append( + $('').attr('id','stream-edit-keyseed-label').attr('for','stream-edit-keyseed').text('Key seed').append( + $('').attr('type','text').attr('id','stream-edit-keyseed').attr('value', sdata.keyseed) + ) + ).append( + $('') + ) + ); + var text = $('#stream-edit-source').val(); //if the source is not live, show any stuff marked as live-only if(text.charAt(0) == '/') @@ -984,6 +1012,9 @@ sdata.error = null; sdata.record = r.val(); if (b.val() != '') { sdata.DVR = b.val(); } + sdata.contentkey = $('#stream-edit-contentkey').val(); + sdata.contentkey = $('#stream-edit-keyid').val(); + sdata.contentkey = $('#stream-edit-keyseed').val(); if(streamname == 'new') { @@ -1340,6 +1371,8 @@ $('').text('search for input files').click(function(){ conversionDirQuery($('#conv-edit-query').val()); }) + ).append( + $('').attr('id','conversiondirquery-status') ).append( $('').attr('id', 'editconversion') );
').text('Encrypt this stream') + ).append( + $('').attr('id','stream-edit-contentkey-label').attr('for','stream-edit-contentkey').text('Content key').append( + $('').attr('type','text').attr('id','stream-edit-contentkey').attr('value', sdata.contentkey) + ) + ).append( + $('').text('- or -') + ).append( + $('').attr('id','stream-edit-keyid-label').attr('for','stream-edit-keyid').text('Key ID').append( + $('').attr('type','text').attr('id','stream-edit-keyid').attr('value', sdata.keyid) + ) + ).append( + $('').attr('id','stream-edit-keyseed-label').attr('for','stream-edit-keyseed').text('Key seed').append( + $('').attr('type','text').attr('id','stream-edit-keyseed').attr('value', sdata.keyseed) + ) + ).append( + $('') + ) + ); + var text = $('#stream-edit-source').val(); //if the source is not live, show any stuff marked as live-only if(text.charAt(0) == '/') @@ -984,6 +1012,9 @@ sdata.error = null; sdata.record = r.val(); if (b.val() != '') { sdata.DVR = b.val(); } + sdata.contentkey = $('#stream-edit-contentkey').val(); + sdata.contentkey = $('#stream-edit-keyid').val(); + sdata.contentkey = $('#stream-edit-keyseed').val(); if(streamname == 'new') { @@ -1340,6 +1371,8 @@ $('').text('search for input files').click(function(){ conversionDirQuery($('#conv-edit-query').val()); }) + ).append( + $('').attr('id','conversiondirquery-status') ).append( $('').attr('id', 'editconversion') );