mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-17 16:22:15 +02:00
check if cleantitle and cleanauthor are different
This commit is contained in:
parent
edc712e6f6
commit
d31ec055f9
1 changed files with 5 additions and 1 deletions
|
@ -209,9 +209,13 @@ class BookFinder {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!books.length && !options.currentlyTryingCleaned) {
|
if (!books.length && !options.currentlyTryingCleaned) {
|
||||||
|
var cleanedTitle = this.cleanTitleForCompares(title)
|
||||||
|
var cleanedAuthor = this.cleanAuthorForCompares(author)
|
||||||
|
if (cleanedTitle == title && cleanedAuthor == author) return books
|
||||||
|
|
||||||
Logger.debug(`Book Search, no matches.. checking cleaned title and author`)
|
Logger.debug(`Book Search, no matches.. checking cleaned title and author`)
|
||||||
options.currentlyTryingCleaned = true
|
options.currentlyTryingCleaned = true
|
||||||
return this.search(provider, this.cleanTitleForCompares(title), this.cleanAuthorForCompares(author), isbn, asin, options)
|
return this.search(provider, cleanedTitle, cleanedAuthor, isbn, asin, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (["google", "audible", "itunes"].includes(provider)) return books
|
if (["google", "audible", "itunes"].includes(provider)) return books
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue