add explicit

This commit is contained in:
Vito0912 2025-06-21 12:02:44 +02:00
parent 28404f37b8
commit bb4eec9355
No known key found for this signature in database
GPG Key ID: 29A3D509FE70B237
2 changed files with 7 additions and 0 deletions

View File

@ -228,6 +228,11 @@ export default {
value: 'abridged',
sublist: false
},
{
text: this.$strings.LabelExplicit,
value: 'explicit',
sublist: false
},
{
text: this.$strings.ButtonIssues,
value: 'issues',

View File

@ -186,6 +186,8 @@ module.exports = {
mediaWhere['$series.id$'] = null
} else if (group === 'abridged') {
mediaWhere['abridged'] = true
} else if (group === 'explicit') {
mediaWhere['explicit'] = true
} else if (['genres', 'tags', 'narrators'].includes(group)) {
mediaWhere[group] = Sequelize.where(Sequelize.literal(`(SELECT count(*) FROM json_each(${group}) WHERE json_valid(${group}) AND json_each.value = :filterValue)`), {
[Sequelize.Op.gte]: 1