]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: EPG details - show broadcast parameters
authorJaroslav Kysela <perex@perex.cz>
Wed, 27 Jan 2016 20:08:17 +0000 (21:08 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 27 Jan 2016 20:08:17 +0000 (21:08 +0100)
src/webui/static/app/epg.js

index 50b14aadd4c6eb50f883c14f1d48d14587ba6f8c..9444614f537229bc02ee1de5578fd6c73c016678 100644 (file)
@@ -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>';