width: 20
});
+ var epgFilterNewOnly = new Ext.form.Checkbox({
+ width: 20
+ });
+
// Channels, uses global store
var epgFilterChannels = new Ext.form.ComboBox({
epgFilterFulltext.setValue(0);
};
+ clearNewOnlyFilter = function() {
+ delete epgStore.baseParams.newOnly;
+ epgFilterNewOnly.setValue(0);
+ }
+
clearChannelFilter = function() {
delete epgStore.baseParams.channel;
epgFilterChannels.setValue("");
clearModeFilter();
clearTitleFilter();
clearFulltextFilter();
+ clearNewOnlyFilter();
clearChannelFilter();
clearChannelTagsFilter();
clearDurationFilter();
}
});
+ epgFilterNewOnly.on('check', function(c, value) {
+ if (epgStore.baseParams.new !== value) {
+ epgStore.baseParams.new = value;
+ epgView.reset();
+ }
+ });
+
var epgView = new Ext.ux.grid.livegrid.GridView({
nearLimit: 100,
loadMask: {
var tbar = [
epgMode, '-',
- epgFilterTitle, { text: _('Fulltext') }, epgFilterFulltext, '-',
+ epgFilterTitle, { text: _('Fulltext') }, epgFilterFulltext, { text: _('New only') }, epgFilterNewOnly, '-',
epgFilterChannels, '-',
epgFilterChannelTags, '-',
epgFilterContentGroup, '-',
var fulltext = epgStore.baseParams.fulltext ?
" <i>(" + _("Fulltext") + ")</i>"
: "";
+ var newOnly = epgStore.baseParams.new ?
+ " <i>(" + _("New only") + ")</i>"
+ : "";
var channel = epgStore.baseParams.channel ?
tvheadend.channelLookupName(epgStore.baseParams.channel)
: "<i>" + _("Don't care") + "</i>";
Ext.MessageBox.confirm(_('Auto Recorder'), _('This will create an automatic rule that '
+ 'continuously scans the EPG for programs '
+ 'to record that match this query') + ': ' + '<br><br>'
- + '<div class="x-smallhdr">' + _('Title') + ':</div>' + title + fulltext + '<br>'
+ + '<div class="x-smallhdr">' + _('Title') + ':</div>' + title + fulltext + newOnly + '<br>'
+ '<div class="x-smallhdr">' + _('Channel') + ':</div>' + channel + '<br>'
+ '<div class="x-smallhdr">' + _('Tag') + ':</div>' + tag + '<br>'
+ '<div class="x-smallhdr">' + _('Genre') + ':</div>' + contentType + '<br>'
};
if (params.title) conf.title = params.title;
if (params.fulltext) conf.fulltext = params.fulltext;
+ if (params.new) conf.btype = 3; // DVR_AUTOREC_BTYPE_NEW in dvr.h has value 3.
if (params.channel) conf.channel = params.channel;
if (params.channelTag) conf.tag = params.channelTag;
if (params.contentType) conf.content_type = params.contentType;