From: Jaroslav Kysela Date: Wed, 27 Jan 2016 20:08:17 +0000 (+0100) Subject: webui: EPG details - show broadcast parameters X-Git-Tag: v4.2.1~1102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=275dea57da3afd00da33b3b97421f10328080f2a;p=thirdparty%2Ftvheadend.git webui: EPG details - show broadcast parameters --- diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 50b14aadd..9444614f5 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -131,6 +131,29 @@ tvheadend.epgDetails = function(event) { }); content += '
' + _('Content Type') + ':
' + genre.join(', ') + '
'; } + var tags = []; + if (event.hd > 1) + tags.push(_('UHDTV')); + else if (event.hd > 0) + tags.push(_('HDTV')); + if ('new' in event) + tags.push(_('New#EPG').split('#')[0]); + if (event.repeat) + tags.push(_('Repeat#EPG').split('#')[0]); + if (event.widescreen) + tags.push(_('Widescreen')); + if (event.aspect) + tags.push(_('Aspect') + ' ' + (event.aspect / 100.0)); + if (event.lines) + tags.push(_('Lines') + ' ' + event.lines); + if (event.deafsigned) + tags.push(_('Deaf signed#EPG').split('#')[0]); + if (event.subtitled) + tags.push(_('Subtitled#EPG').split('#')[0]); + if (event.audiodesc) + tags.push(_('Audio description#EPG').split('#')[0]); + if (tags.length > 0) + content += '
' + _('Parameters') + ':
' + tags.join(', ') + '
'; content += ''; content += '
';