Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: EPG details - show broadcast parameters
  • Loading branch information
perexg committed Jan 27, 2016
1 parent b832ef2 commit 275dea5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/webui/static/app/epg.js
Expand Up @@ -131,6 +131,29 @@ tvheadend.epgDetails = function(event) {
});
content += '<div class="x-epg-meta"><div class="x-epg-prefix">' + _('Content Type') + ':</div> ' + genre.join(', ') + '</div>';
}
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 += '<div class="x-epg-meta"><div class="x-epg-prefix">' + _('Parameters') + ':</div> ' + tags.join(', ') + '</div>';

content += '<div id="related"></div>';
content += '<div id="altbcast"></div>';
Expand Down

0 comments on commit 275dea5

Please sign in to comment.