From 21911b5e37a20b6f2a10ef48a93ccf7bf2dd179c Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 11 Aug 2023 05:45:14 +0000 Subject: [PATCH] webui/dvr: Add age_rating in recording details dialogs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The details dialogs in the various recording tabs do not open anymore with the error `Uncaught TypeError: params[25] is undefined` in the JS console as the age_rating wasn't requested for those, only for the overview columns. While we are at it lets also display the value in the same way the similar looking (but completely different implemented…) EPG dialog does. Regession-of: d501059995 Fixes: https://tvheadend.org/issues/6297 --- src/webui/static/app/dvr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index b3913fd46..212f464d9 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -138,6 +138,8 @@ tvheadend.dvrDetails = function(grid, index) { content += tvheadend.sortAndAddArray(keyword, _('Keywords')); if (category) content += tvheadend.sortAndAddArray(category, _('Categories')); + if (age_rating) + content += '
' + _('Age Rating') + ':' + age_rating + '
'; if (status) content += '
' + _('Status') + ':' + status + '
'; if (filesize) @@ -306,7 +308,7 @@ tvheadend.dvrDetails = function(grid, index) { list: 'channel_icon,disp_title,disp_subtitle,disp_summary,episode_disp,start_real,stop_real,' + 'duration,disp_description,status,filesize,comment,duplicate,' + 'autorec_caption,timerec_caption,image,copyright_year,credits,keyword,category,' + - 'first_aired,genre,channelname,fanart_image,broadcast', + 'first_aired,genre,channelname,fanart_image,broadcast,age_rating', }, success: function(d) { d = json_decode(d); -- 2.47.2