this needs to match with the property forclient mode

geogolem 8 years ago
parent 7cf2a8cb62
commit 1bae7bb623

@ -75,15 +75,15 @@ namespace NzbDrone.Core.Tv
//{ //{
// return v => v.Monitored == true || v.Monitored == false; // return v => v.Monitored == true || v.Monitored == false;
//} //}
if (FilterKey == "moviemonitored" && FilterValue == "false") if (FilterKey == "monitored" && FilterValue == "false")
{ {
return v => v.Monitored == false; return v => v.Monitored == false;
} }
else if (FilterKey == "moviemonitored" && FilterValue == "true") else if (FilterKey == "monitored" && FilterValue == "true")
{ {
return v => v.Monitored == true; return v => v.Monitored == true;
} }
else if (FilterKey == "moviestatus") else if (FilterKey == "status")
{ {
switch (FilterValue) switch (FilterValue)
{ {
@ -105,7 +105,7 @@ namespace NzbDrone.Core.Tv
break; break;
} }
} }
else if (FilterKey == "moviedownloaded") else if (FilterKey == "downloaded")
{ {
return v => v.MovieFileId == 0; return v => v.MovieFileId == 0;
} }

@ -19,33 +19,33 @@ var filterModes = {
null null
], ],
'continuing' : [ 'continuing' : [
'moviestatus', 'status',
'continuing' 'continuing'
], ],
'ended' : [ 'ended' : [
'moviestatus', 'status',
'ended' 'ended'
], ],
'monitored' : [ 'monitored' : [
'moviemonitored', 'monitored',
true true
], ],
'missing' : [ 'missing' : [
'moviedownloaded', 'downloaded',
false false
], ],
'released' : [ 'released' : [
"moviestatus", "status",
"released", "released",
//function(model) { return model.getStatus() == "released"; } //function(model) { return model.getStatus() == "released"; }
], ],
'announced' : [ 'announced' : [
"moviestatus", "status",
"announced", "announced",
//function(model) { return model.getStatus() == "announced"; } //function(model) { return model.getStatus() == "announced"; }
], ],
'cinemas' : [ 'cinemas' : [
"moviestatus", "status",
"inCinemas", "inCinemas",
//function(model) { return model.getStatus() == "inCinemas"; } //function(model) { return model.getStatus() == "inCinemas"; }
] ]

@ -31,27 +31,27 @@ var Collection = PagableCollection.extend({
filterModes : { filterModes : {
'monitored' : [ 'monitored' : [
'moviemonitored', 'monitored',
'true' 'true'
], ],
'unmonitored' : [ 'unmonitored' : [
'moviemonitored', 'monitored',
'false' 'false'
], ],
'announced' : [ 'announced' : [
'moviestatus', 'status',
'announced' 'announced'
], ],
'incinemas' : [ 'incinemas' : [
'moviestatus', 'status',
'inCinemas' 'inCinemas'
], ],
'released' : [ 'released' : [
'moviestatus', 'status',
'released' 'released'
], ],
'available' : [ 'available' : [
'moviestatus', 'status',
'available' 'available'
], ],
'all' : [ 'all' : [

@ -30,27 +30,27 @@ var Collection = PagableCollection.extend({
filterModes : { filterModes : {
'monitored' : [ 'monitored' : [
'moviemonitored', 'monitored',
'true' 'true'
], ],
'unmonitored' : [ 'unmonitored' : [
'moviemonitored', 'monitored',
'false' 'false'
], ],
'announced' : [ 'announced' : [
'moviestatus', 'status',
'announced' 'announced'
], ],
'incinemas' : [ 'incinemas' : [
'moviestatus', 'status',
'inCinemas' 'inCinemas'
], ],
'released' : [ 'released' : [
'moviestatus', 'status',
'released' 'released'
], ],
'available' : [ 'available' : [
'moviestatus', 'status',
'available' 'available'
], ],
'all' : [ 'all' : [

Loading…
Cancel
Save