mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-19 10:24:41 +02:00
prettier
This commit is contained in:
parent
a6422bb3fc
commit
ad2c5c29e1
3 changed files with 13 additions and 13 deletions
|
@ -205,8 +205,7 @@ class BookFinder {
|
|||
*/
|
||||
async getAudiMetaResults(title, author, asin, provider) {
|
||||
// Ensure provider is a string (See CodeQL) even though it should be a string anyway
|
||||
const providerStr = (typeof provider === 'string' ? provider :
|
||||
(Array.isArray(provider) ? provider[0]?.toString() || '' : '')).toString()
|
||||
const providerStr = (typeof provider === 'string' ? provider : Array.isArray(provider) ? provider[0]?.toString() || '' : '').toString()
|
||||
|
||||
const region = providerStr.includes('.') ? providerStr.split('.').pop() : ''
|
||||
const books = await this.audiMeta.search(title, author, asin, region, this.#providerResponseTimeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue