mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 02:45:02 +02:00
Add:Global library search also searches on podcast episode titles #1363
This commit is contained in:
parent
88bd51e2da
commit
1609f1a499
7 changed files with 45 additions and 20 deletions
|
@ -377,8 +377,8 @@ class BookMetadata {
|
|||
return this.authors.filter(au => cleanStringForSearch(au.name).includes(query))
|
||||
}
|
||||
searchQuery(query) { // Returns key if match is found
|
||||
var keysToCheck = ['title', 'asin', 'isbn']
|
||||
for (var key of keysToCheck) {
|
||||
const keysToCheck = ['title', 'asin', 'isbn']
|
||||
for (const key of keysToCheck) {
|
||||
if (this[key] && cleanStringForSearch(String(this[key])).includes(query)) {
|
||||
return {
|
||||
matchKey: key,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue