Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Details upcomin, finished and faild recordings
Add more description to details upcoming, finished and failed
recordings.
-add episod
-add start schedule
-add stop schedule
-add duration
-add file size
  • Loading branch information
pepsonEL authored and perexg committed Nov 7, 2014
1 parent e7b613b commit 046a998
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/webui/static/app/dvr.js
Expand Up @@ -11,25 +11,35 @@ tvheadend.dvrDetails = function(uuid) {
var params = d[0].params;
var chicon = params[0].value;
var title = params[1].value;
var desc = params[2].value;
var status = params[3].value;
var episode = params[2].value;
var start_real = params[3].value;
var stop_real = params[4].value;
var duration = params[5].value;
var desc = params[6].value;
var status = params[7].value;
var filesize = params[8].value;
var content = '';
var but;

if (chicon != null && chicon.length > 0)
content += '<img class="x-epg-chicon" src="' + chicon + '">';

content += '<div class="x-epg-title">' + title + '</div>';
content += '<div class="x-epg-title">' + episode + '</div>';
content += '<div class="x-epg-meta">Scheduled Start Time: ' + new Date(start_real * 1000).toLocaleString() + '</div>';
content += '<div class="x-epg-meta">Scheduled Stop Time: ' + new Date(stop_real * 1000).toLocaleString() + '</div>';
content += '<div class="x-epg-meta">Duration: ' + parseInt(duration / 60) + ' min</div>';
content += '<div class="x-epg-desc">' + desc + '</div>';
content += '<hr>';
content += '<div class="x-epg-meta">Status: ' + status + '</div>';
content += '<div class="x-epg-meta">File size: ' + parseInt(filesize / 1000000) + ' MB</div>';

var win = new Ext.Window({
title: title,
iconCls: 'info',
layout: 'fit',
width: 400,
height: 300,
width: 500,
height: 400,
constrainHeader: true,
buttonAlign: 'center',
html: content
Expand All @@ -43,7 +53,8 @@ tvheadend.dvrDetails = function(uuid) {
url: 'api/idnode/load',
params: {
uuid: uuid,
list: 'channel_icon,disp_title,disp_description,status'
list: 'channel_icon,disp_title,episode,start_real,stop_real,' +
'duration,disp_description,status,filesize'
},
success: function(d) {
d = json_decode(d);
Expand Down

0 comments on commit 046a998

Please sign in to comment.