]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add a few extra bits of info to the epg ui code.
authorAdam Sutton <dev@adamsutton.me.uk>
Thu, 31 May 2012 12:57:43 +0000 (13:57 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 31 May 2012 12:57:43 +0000 (13:57 +0100)
src/webui/extjs.c
src/webui/static/app/epg.js

index c4e4c54dfee8d26305323b7bcff95fc8aea8ecfb..7e6c5145267cf11c6db36ec4daf5a27e51e1d741 100644 (file)
@@ -722,6 +722,8 @@ extjs_epg(http_connection_t *hc, const char *remain, void *opaque)
 
     if(ee->title != NULL)
       htsmsg_add_str(m, "title", ee->title);
+    if(ee->subtitle)
+      htsmsg_add_str(m, "subtitle", ee->subtitle);
 
     if(ee->description != NULL)
       htsmsg_add_str(m, "description", ee->description);
index 68eaff4f6cb0c03b4490a74efe8678e24dc1326f..2c8e5e8cd8d7bb51cb77d2f2f00e8e7634f920b2 100644 (file)
@@ -14,7 +14,9 @@ tvheadend.epgDetails = function(event) {
     if(event.chicon != null && event.chicon.length > 0)
        content += '<img class="x-epg-chicon" src="' + event.chicon + '">';
 
-    content += '<div class="x-epg-title">' + event.title + '</div>';
+    content += '<div class="x-epg-title">' + event.title;
+    if (event.subtitle) content += "&nbsp;:&nbsp;" + event.subtitle;
+    content += '</div>';
     content += '<div class="x-epg-desc">' + event.episode + '</div>';
     content += '<div class="x-epg-desc">' + event.description + '</div>';
 
@@ -120,7 +122,7 @@ tvheadend.epgDetails = function(event) {
           html += '<div class="x-epg-desc">';
           if (ee.episode) html += ee.episode + '&nbsp;&nbsp;&nbsp;';
           html += ee.title;
-          if (ee.subtitle) html += ':' + ee.subtitle
+          if (ee.subtitle) html += ' : ' + ee.subtitle
           html += '</div>';
         }
       }
@@ -180,11 +182,9 @@ tvheadend.epg = function() {
            {name: 'channel'},
            {name: 'channelid'},
            {name: 'title'},
+           {name: 'subtitle'},
            {name: 'episode'},
            {name: 'description'},
-           {name: 'ext_desc'},
-           {name: 'ext_item'},
-           {name: 'ext_text'},
            {name: 'chicon'},
             {name: 'start', type: 'date', dateFormat: 'U' /* unix time */},
             {name: 'end', type: 'date', dateFormat: 'U' /* unix time */},
@@ -242,6 +242,12 @@ tvheadend.epg = function() {
            header: "Title",
            dataIndex: 'title',
            renderer: renderText
+       },{
+           width: 250,
+           id:'subtitle',
+           header: "SubTitle",
+           dataIndex: 'subtitle',
+           renderer: renderText
        },{
            width: 100,
            id:'episode',