diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js
index 8242eb74..a828a23a 100644
--- a/src/webui/static/app/dvr.js
+++ b/src/webui/static/app/dvr.js
@@ -25,15 +25,23 @@ tvheadend.dvrDetails = function(uuid) {
if (chicon != null && chicon.length > 0)
content += '
';
- content += '
' + title + '
';
- content += '' + episode + '
';
- content += 'Scheduled Start Time:
' + tvheadend.niceDate(start_real * 1000) + '
';
- content += 'Scheduled Stop Time:
' + tvheadend.niceDate(stop_real * 1000) + '
';
- content += 'Duration:
' + parseInt(duration / 60) + ' min
';
- content += '' + desc + '
';
+ if (title)
+ content += '' + title + '
';
+ if (episode)
+ content += '' + episode + '
';
+ if (start_real)
+ content += 'Scheduled Start Time:
' + tvheadend.niceDate(start_real * 1000) + '
';
+ if (stop_real)
+ content += 'Scheduled Stop Time:
' + tvheadend.niceDate(stop_real * 1000) + '
';
+ if (duration)
+ content += 'Duration:
' + parseInt(duration / 60) + ' min
';
+ if (desc)
+ content += '' + desc + '
';
content += '
';
- content += '';
- content += '';
+ if (status)
+ content += '';
+ if (filesize)
+ content += '';
if (comment)
content += '';