mirror of
https://github.com/Radarr/Radarr
synced 2025-02-24 07:10:57 +00:00
parent
3c1113260d
commit
d5e6cc542f
1 changed files with 25 additions and 0 deletions
|
@ -151,6 +151,31 @@ export const sortPredicates = {
|
|||
result += 3;
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
movieStatus: function(item) {
|
||||
let result = 0;
|
||||
|
||||
const hasMovieFile = !!item.movieFile;
|
||||
|
||||
if (hasMovieFile) {
|
||||
// TODO: Consider Quality Weight for Sorting within status of hasMovie
|
||||
if (item.movieFile.qualityCutoffNotMet) {
|
||||
result += 4;
|
||||
} else {
|
||||
result += 8;
|
||||
}
|
||||
}
|
||||
|
||||
if (item.isAvailable) {
|
||||
result++;
|
||||
}
|
||||
|
||||
if (item.monitored) {
|
||||
result += 2;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue