From: David Kalnischkies Date: Fri, 11 Aug 2023 05:45:14 +0000 (+0000) Subject: webui/dvr: Add age_rating in recording details dialogs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21911b5e37a20b6f2a10ef48a93ccf7bf2dd179c;p=thirdparty%2Ftvheadend.git webui/dvr: Add age_rating in recording details dialogs 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 --- 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);