mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-03 14:04:53 +02:00
list includes syntax
This commit is contained in:
parent
27fef50983
commit
485888b2d9
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class BookFinder {
|
||||||
return this.search(provider, this.cleanTitleForCompares(title), this.cleanAuthorForCompares(author), isbn, asin, options)
|
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 books.sort((a, b) => {
|
||||||
return a.totalDistance - b.totalDistance
|
return a.totalDistance - b.totalDistance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue