Project

General

Profile

Feature #4695

Display recordings filepath in web interface Finished Recording info window.

Added by Steve P about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
User Interface
Target version:
-
Start date:
2017-10-28
Due date:
% Done:

0%

Estimated time:

Description

Loving the 4.2.4 release, but was trying to determine if the new static FFMpeg build was causing me some issues. So started looking at the files on disk.

Then was thinking it would be nice to have the file path of the recorded file on disk within the web interface detailed information popout in Finished Recordings.

I am aware that recording names can be customised, but when you have several files in a Record series with similar names, it would aid in quickly identifying a particular file.


Files

tvh_fileondisk.png (52.6 KB) tvh_fileondisk.png Steve P, 2017-10-28 22:03
file_missing.png (27.1 KB) file_missing.png Removed Recordings Steve P, 2017-11-01 21:55
fileondisk.png (62.4 KB) fileondisk.png Finished Recordings Steve P, 2017-11-01 21:55

History

#1

Updated by Steve P about 7 years ago

I managed to put this together with below patch, added msgid "File on Disk" to English_GB internationalisation file intl/js/tvheadend.js.en_GB.po , I am not sure if there is a method to add to others:

--- src/webui/static/app/dvr.js.orig    2017-11-01 19:35:09.647505496 +0000
+++ src/webui/static/app/dvr.js 2017-11-01 20:22:48.859577501 +0000
@@ -23,6 +23,7 @@
         var duplicate = params[11].value;
         var autorec_caption = params[12].value;
         var timerec_caption = params[13].value;
+        var filename = params[14].value;
         var content = '';
         var but;

@@ -63,6 +64,8 @@
             content += '<div class="x-epg-meta"><span class="x-epg-prefix">' + _('Status') + ':</span><span class="x-epg-body">' + status + '</span></div>';
         if (filesize)
             content += '<div class="x-epg-meta"><span class="x-epg-prefix">' + _('File size') + ':</span><span class="x-epg-body">' + parseInt(filesize / 1000000) + ' MB</span></div>';
+        if (filename)
+            content += '<div class="x-epg-meta"><span class="x-epg-prefix">' + _('File on Disk') + ':</span><span class="x-epg-body">' + filename + '</span></div>';
         if (comment)
             content += '<div class="x-epg-meta"><span class="x-epg-prefix">' + _('Comment') + ':</span><span class="x-epg-body">' + comment + '</span></div>';
         if (autorec_caption)
@@ -118,7 +121,7 @@
             uuid: uuid,
             list: 'channel_icon,disp_title,disp_subtitle,episode,start_real,stop_real,' +
                   'duration,disp_description,status,filesize,comment,duplicate,' +
-                  'autorec_caption,timerec_caption'
+                  'autorec_caption,timerec_caption,filename'
         },
         success: function(d) {
             d = json_decode(d);

Works well, as per attached screenshots below.

#2

Updated by saen acro about 7 years ago

need to have permission who can see information for location
availability can be seen without permision

#3

Updated by Steve P about 7 years ago

It appears that any of the types in the dvr_entry_class in src/dvr/dvr_db.c can be imported into the dvr.js

Unfortunately, this does not include a role definition, so I can't make a decision on what level to print this info.

I will have to leave permission decisions to devs further up the code tree.....

Also available in: Atom PDF