1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

New: Option to show release group column on series list

This commit is contained in:
Daniel Martin Gonzalez
2022-02-27 10:18:13 +01:00
committed by GitHub
parent acdf02d569
commit f1d07f74ee
11 changed files with 82 additions and 6 deletions
@@ -131,6 +131,18 @@ export const filterPredicates = {
return predicate(item.ratings.value * 10, filterValue);
},
releaseGroups: function(item, filterValue, type) {
const { statistics = {} } = item;
const {
releaseGroups = []
} = statistics;
const predicate = filterTypePredicates[type];
return predicate(releaseGroups, filterValue);
},
seasonCount: function(item, filterValue, type) {
const predicate = filterTypePredicates[type];
const seasonCount = item.statistics ? item.statistics.seasonCount : 0;
@@ -261,6 +273,11 @@ export const filterBuilderProps = [
return tagList.sort(sortByName);
}
},
{
name: 'releaseGroups',
label: 'Release Groups',
type: filterBuilderTypes.ARRAY
},
{
name: 'ratings',
label: 'Rating',