mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-13 02:19:46 +01:00
list includes syntax
This commit is contained in:
@@ -214,7 +214,7 @@ class BookFinder {
|
||||
return this.search(provider, this.cleanTitleForCompares(title), this.cleanAuthorForCompares(author), isbn, asin, options)
|
||||
}
|
||||
|
||||
if (provider in ["google", "audible", "itunes"]) return books
|
||||
if (["google", "audible", "itunes"].includes(provider)) return books
|
||||
|
||||
return books.sort((a, b) => {
|
||||
return a.totalDistance - b.totalDistance
|
||||
|
||||
Reference in New Issue
Block a user