Feature #4695
Display recordings filepath in web interface Finished Recording info window.
0%
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
History
Updated by Steve P about 7 years ago
- File fileondisk.png fileondisk.png added
- File file_missing.png file_missing.png added
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.
Updated by saen acro about 7 years ago
need to have permission who can see information for location
availability can be seen without permision
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.....