]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Clean up the UI for series link and related broadcasts. For now all related info...
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 7 Sep 2012 10:27:25 +0000 (11:27 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 11 Sep 2012 13:24:11 +0000 (14:24 +0100)
src/webui/extjs.c
src/webui/static/app/dvr.js
src/webui/static/app/epg.js

index 7f2c53fc8e35df96ed0387dff932bfd917188765..658b37c1f310479776ce537345e1e5ef55a9bc18 100644 (file)
@@ -786,6 +786,9 @@ extjs_epg(http_connection_t *hc, const char *remain, void *opaque)
     htsmsg_add_u32(m, "start", e->start);
     htsmsg_add_u32(m, "end", e->stop);
     htsmsg_add_u32(m, "duration", e->stop - e->start);
+
+    if(e->serieslink)
+      htsmsg_add_str(m, "serieslink", e->serieslink->uri);
     
     if((eg = LIST_FIRST(&ee->genre))) {
       htsmsg_add_u32(m, "contenttype", eg->code);
index 467369467f17766c8fa848242e7803bcce8cd953..ca45ee58ab98fd981740d3a925b50d6cac758a21 100644 (file)
@@ -456,18 +456,11 @@ tvheadend.autoreceditor = function() {
                emptyText: 'Only include channel...'
            })
        },{
-    header : "Brand",
-    dataIndex: 'brand',
-    editor : new Ext.form.ComboBox({
-      loadingText: 'Loading...',
-      displayField: 'title',
-      valueField: 'uri',
-      store: tvheadend.brands,
-      mode: 'local',
-      editable: false,
-      triggerAction: 'all',
-      emptyText: 'Record brand...'
-    })
+    header : "SeriesLink",
+    dataIndex: 'serieslink',
+    renderer : function(v) {
+      return v ? 'yes' : 'no';
+    }
   },{
            header: "Channel tag",
            dataIndex: 'tag',
@@ -649,7 +642,7 @@ tvheadend.dvr = function() {
 
     
     tvheadend.autorecRecord = Ext.data.Record.create([
-       'enabled','title', 'brand', 'channel','tag','creator','contenttype','comment',
+       'enabled','title', 'serieslink', 'channel','tag','creator','contenttype','comment',
        'weekdays', 'pri', 'approx_time', 'config_name'
     ]);
     
index 1e970323214a6d3a149b472511e46ace5ceca90f..0c92d17ce5cf5a533dc88e03b11270cdf4fee84d 100644 (file)
@@ -92,7 +92,7 @@ tvheadend.epgDetails = function(event) {
            }),
     new Ext.Button({
       handler: recordSeries,
-      text: "Record series"
+      text: event.serieslink ? "Record series" : "Autorec"
     })
        ],
        buttonAlign: 'center',
@@ -161,7 +161,7 @@ tvheadend.epgDetails = function(event) {
     var ab = new Ext.data.JsonStore({
       root: 'entries',
       url:  'epgrelated',
-      autoLoad: true,
+      autoLoad: false,
       id: 'id',
       baseParams: { op: 'get', id: event.id, type: 'alternative' },
       fields: Ext.data.Record.create([ 'id', 'channel', 'start' ]),
@@ -170,7 +170,7 @@ tvheadend.epgDetails = function(event) {
     var re = new Ext.data.JsonStore({
       root: 'entries',
       url:  'epgrelated',
-      autoLoad: true,
+      autoLoad: false,
       id: 'uri',
       baseParams: { op: 'get', id: event.id, type: 'related' },
       fields: Ext.data.Record.create([ 'uri', 'title', 'subtitle', 'episode']),
@@ -219,7 +219,8 @@ tvheadend.epg = function() {
             {name: 'end', type: 'date', dateFormat: 'U' /* unix time */},
             {name: 'duration'},
            {name: 'contenttype'},
-           {name: 'schedstate'}
+           {name: 'schedstate'},
+      {name: 'serieslink'},
        ])
    });