[PR #735] [MERGED] Update BookFinder.js: Retry Search with Clean Title and Author if No Books Found #3406

Closed
opened 2026-04-25 00:15:31 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/735
Author: @samosbor
Created: 6/17/2022
Status: Merged
Merged: 6/17/2022
Merged by: @advplyr

Base: masterHead: master


📝 Commits (4)

📊 Changes

1 file changed (+15 additions, -3 deletions)

View changed files

📝 server/finders/BookFinder.js (+15 -3)

📄 Description

I got the idea from @sxb1n9 and his PR here https://github.com/advplyr/audiobookshelf/pull/680

My audiobooks with (unabridged) in the title never get picked up by the search function. This will fix that as well as in cases like "Ender's Game (Ender's Saga)"

Pro:

  • This won't run unless no books were found the first time around
  • This uses existing functions cleanTitleForCompares and cleanAuthorForCompares

Con:

  • Twice the API calls if no books are found the first time around

https://user-images.githubusercontent.com/39509289/174258568-614ff5cb-16ec-4cb4-8960-c31e91184b59.mp4


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/735 **Author:** [@samosbor](https://github.com/samosbor) **Created:** 6/17/2022 **Status:** ✅ Merged **Merged:** 6/17/2022 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`27fef50`](https://github.com/advplyr/audiobookshelf/commit/27fef5098379045931b3b65a2651ec29c9ffecfd) retry search with clean title author - [`485888b`](https://github.com/advplyr/audiobookshelf/commit/485888b2d9e6da6c3323a903dbb0d16c6c50d76c) list includes syntax - [`edc712e`](https://github.com/advplyr/audiobookshelf/commit/edc712e6f6dfc5652b0b22d462fb2ed9cf143652) Merge branch 'master' of https://github.com/samosbor/audiobookshelf - [`d31ec05`](https://github.com/advplyr/audiobookshelf/commit/d31ec055f9b7eb73db82874b72582c0e1c6d84d4) check if cleantitle and cleanauthor are different ### 📊 Changes **1 file changed** (+15 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/finders/BookFinder.js` (+15 -3) </details> ### 📄 Description I got the idea from @sxb1n9 and his PR here https://github.com/advplyr/audiobookshelf/pull/680 My audiobooks with (unabridged) in the title never get picked up by the search function. This will fix that as well as in cases like "Ender's Game (Ender's Saga)" Pro: - This won't run unless no books were found the first time around - This uses existing functions `cleanTitleForCompares` and `cleanAuthorForCompares` Con: - Twice the API calls if no books are found the first time around https://user-images.githubusercontent.com/39509289/174258568-614ff5cb-16ec-4cb4-8960-c31e91184b59.mp4 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:15:31 +02:00
adam closed this issue 2026-04-25 00:15:31 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3406