mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	add explicit
This commit is contained in:
		
							parent
							
								
									28404f37b8
								
							
						
					
					
						commit
						bb4eec9355
					
				| @ -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…
	
		Reference in New Issue
	
	Block a user