mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 16:44:16 +01:00
feat: Expanded filter to include "has no ebook" and "has no supplementary ebooks" options
This commit is contained in:
parent
3a99cc56b7
commit
655bebfec4
@ -368,9 +368,17 @@ export default {
|
|||||||
id: 'ebook',
|
id: 'ebook',
|
||||||
name: this.$strings.LabelHasEbook
|
name: this.$strings.LabelHasEbook
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'no-ebook',
|
||||||
|
name: this.$strings.LabelMissingEbook
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'supplementary',
|
id: 'supplementary',
|
||||||
name: this.$strings.LabelHasSupplementaryEbook
|
name: this.$strings.LabelHasSupplementaryEbook
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'no-supplementary',
|
||||||
|
name: this.$strings.LabelMissingSupplementaryEbook
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -356,7 +356,9 @@
|
|||||||
"LabelMetaTags": "Meta Tags",
|
"LabelMetaTags": "Meta Tags",
|
||||||
"LabelMinute": "Minute",
|
"LabelMinute": "Minute",
|
||||||
"LabelMissing": "Fehlend",
|
"LabelMissing": "Fehlend",
|
||||||
|
"LabelMissingEbook": "E-Book fehlt",
|
||||||
"LabelMissingParts": "Fehlende Teile",
|
"LabelMissingParts": "Fehlende Teile",
|
||||||
|
"LabelMissingSupplementaryEbook": "Ergänzendes E-Book fehlt",
|
||||||
"LabelMobileRedirectURIs": "Erlaubte Weiterleitungs-URIs für die mobile App",
|
"LabelMobileRedirectURIs": "Erlaubte Weiterleitungs-URIs für die mobile App",
|
||||||
"LabelMobileRedirectURIsDescription": "Dies ist eine Whitelist gültiger Umleitungs-URIs für mobile Apps. Der Standardwert ist <code>audiobookshelf://oauth</code>, den du entfernen oder durch zusätzliche URIs für die Integration von Drittanbieter-Apps ergänzen kannst. Die Verwendung eines Sternchens (<code>*</code>) als alleiniger Eintrag erlaubt jede URI.",
|
"LabelMobileRedirectURIsDescription": "Dies ist eine Whitelist gültiger Umleitungs-URIs für mobile Apps. Der Standardwert ist <code>audiobookshelf://oauth</code>, den du entfernen oder durch zusätzliche URIs für die Integration von Drittanbieter-Apps ergänzen kannst. Die Verwendung eines Sternchens (<code>*</code>) als alleiniger Eintrag erlaubt jede URI.",
|
||||||
"LabelMore": "Mehr",
|
"LabelMore": "Mehr",
|
||||||
|
@ -356,7 +356,9 @@
|
|||||||
"LabelMetaTags": "Meta Tags",
|
"LabelMetaTags": "Meta Tags",
|
||||||
"LabelMinute": "Minute",
|
"LabelMinute": "Minute",
|
||||||
"LabelMissing": "Missing",
|
"LabelMissing": "Missing",
|
||||||
|
"LabelMissingEbook": "Has no ebook",
|
||||||
"LabelMissingParts": "Missing Parts",
|
"LabelMissingParts": "Missing Parts",
|
||||||
|
"LabelMissingSupplementaryEbook": "Has no supplementary ebook",
|
||||||
"LabelMobileRedirectURIs": "Allowed Mobile Redirect URIs",
|
"LabelMobileRedirectURIs": "Allowed Mobile Redirect URIs",
|
||||||
"LabelMobileRedirectURIsDescription": "This is a whitelist of valid redirect URIs for mobile apps. The default one is <code>audiobookshelf://oauth</code>, which you can remove or supplement with additional URIs for third-party app integration. Using an asterisk (<code>*</code>) as the sole entry permits any URI.",
|
"LabelMobileRedirectURIsDescription": "This is a whitelist of valid redirect URIs for mobile apps. The default one is <code>audiobookshelf://oauth</code>, which you can remove or supplement with additional URIs for third-party app integration. Using an asterisk (<code>*</code>) as the sole entry permits any URI.",
|
||||||
"LabelMore": "More",
|
"LabelMore": "More",
|
||||||
|
@ -204,6 +204,10 @@ module.exports = {
|
|||||||
mediaWhere['ebookFile'] = {
|
mediaWhere['ebookFile'] = {
|
||||||
[Sequelize.Op.not]: null
|
[Sequelize.Op.not]: null
|
||||||
}
|
}
|
||||||
|
} else if (value == 'no-ebook') {
|
||||||
|
mediaWhere['ebookFile'] = {
|
||||||
|
[Sequelize.Op.eq]: null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (group === 'missing') {
|
} else if (group === 'missing') {
|
||||||
if (['asin', 'isbn', 'subtitle', 'publishedYear', 'description', 'publisher', 'language', 'cover'].includes(value)) {
|
if (['asin', 'isbn', 'subtitle', 'publishedYear', 'description', 'publisher', 'language', 'cover'].includes(value)) {
|
||||||
@ -421,6 +425,10 @@ module.exports = {
|
|||||||
libraryItemWhere['libraryFiles'] = {
|
libraryItemWhere['libraryFiles'] = {
|
||||||
[Sequelize.Op.substring]: `"isSupplementary":true`
|
[Sequelize.Op.substring]: `"isSupplementary":true`
|
||||||
}
|
}
|
||||||
|
} else if (filterGroup === 'ebooks' && filterValue === 'no-supplementary') {
|
||||||
|
libraryItemWhere['libraryFiles'] = {
|
||||||
|
[Sequelize.Op.notLike]: Sequelize.literal(`\'%"isSupplementary":true%\'`),
|
||||||
|
}
|
||||||
} else if (filterGroup === 'missing' && filterValue === 'authors') {
|
} else if (filterGroup === 'missing' && filterValue === 'authors') {
|
||||||
authorInclude = {
|
authorInclude = {
|
||||||
model: Database.authorModel,
|
model: Database.authorModel,
|
||||||
|
Loading…
Reference in New Issue
Block a user