diff --git a/server/finders/BookFinder.js b/server/finders/BookFinder.js index 60b39838a..161174a35 100644 --- a/server/finders/BookFinder.js +++ b/server/finders/BookFinder.js @@ -167,7 +167,9 @@ class BookFinder { } async getAudibleResults(title, author, asin) { - var books = await this.audible.search(title, author, asin); + // cleantitle for search in audible as (unabridged) doesn't find anything + var cleanedTitle = title.replace(/ *\([^)]*\) */g, "") + var books = await this.audible.search(cleanedTitle, author, asin); if (this.verbose) Logger.debug(`Audible Book Search Results: ${books.length || 0}`) if (!books) return [] return books @@ -233,4 +235,4 @@ class BookFinder { return this.audnexus.getChaptersByASIN(asin) } } -module.exports = BookFinder \ No newline at end of file +module.exports = BookFinder