Update:Book subtitle searchable #1755

This commit is contained in:
advplyr 2023-05-06 09:43:13 -05:00
parent f9a668cb41
commit 30009e45da
2 changed files with 3 additions and 3 deletions

View file

@ -411,7 +411,7 @@ class BookMetadata {
return this.narrators.filter(n => cleanStringForSearch(n).includes(query))
}
searchQuery(query) { // Returns key if match is found
const keysToCheck = ['title', 'asin', 'isbn']
const keysToCheck = ['title', 'asin', 'isbn', 'subtitle']
for (const key of keysToCheck) {
if (this[key] && cleanStringForSearch(String(this[key])).includes(query)) {
return {