mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-27 17:00:34 -04:00
add explicit
This commit is contained in:
parent
28404f37b8
commit
bb4eec9355
2 changed files with 7 additions and 0 deletions
|
@ -228,6 +228,11 @@ export default {
|
|||
value: 'abridged',
|
||||
sublist: false
|
||||
},
|
||||
{
|
||||
text: this.$strings.LabelExplicit,
|
||||
value: 'explicit',
|
||||
sublist: false
|
||||
},
|
||||
{
|
||||
text: this.$strings.ButtonIssues,
|
||||
value: 'issues',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue