Merge pull request #465 from selfhost-alt/filter-by-missing-fields

Proposal: Add a filter for media that is missing specific fields
This commit is contained in:
advplyr 2022-04-19 05:02:12 -05:00 committed by GitHub
commit 10299e3037
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 1 deletions

View file

@ -107,6 +107,11 @@ export default {
value: 'progress',
sublist: true
},
{
text: 'Missing',
value: 'missing',
sublist: true
},
{
text: 'Issues',
value: 'issues',
@ -206,6 +211,9 @@ export default {
progress() {
return ['Finished', 'In Progress', 'Not Started']
},
missing() {
return ['ASIN', 'ISBN', 'Subtitle', 'Author', 'Publish Year', 'Series', 'Volume Number', 'Description', 'Genres', 'Tags', 'Narrator', 'Publisher', 'Language', ]
},
sublistItems() {
return (this[this.sublist] || []).map((item) => {
if (typeof item === 'string') {