[PR #4873] [MERGED] Fix Upload Lookup #4358

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

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4873
Author: @Vito0912
Created: 11/29/2025
Status: Merged
Merged: 11/29/2025
Merged by: @advplyr

Base: masterHead: feat/fixUploadLookup


📝 Commits (1)

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 server/controllers/SearchController.js (+2 -2)
📝 server/finders/BookFinder.js (+1 -1)

📄 Description

Brief summary

When uploading a book through the interface and pressing the "Automatically fetch..." button, it fails because a recent refactor in the finder logic now requires a libraryId to be provided. Since any item not yet uploaded has no id, this caused the error.
This PR fixes the issue and makes the button work again.
It also disables the heuristic for scoring and sorting since it is not available anyway if there is no id available. Currently, the API returns a low confidence score when not providing an id, which is incorrect.

Which issue is fixed?

DC

In-depth Description

See above

How have you tested this?

Uploaded and matched book

Screenshots


🔄 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/4873 **Author:** [@Vito0912](https://github.com/Vito0912) **Created:** 11/29/2025 **Status:** ✅ Merged **Merged:** 11/29/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `feat/fixUploadLookup` --- ### 📝 Commits (1) - [`a5d2c1b`](https://github.com/advplyr/audiobookshelf/commit/a5d2c1bd64df6ed1c0f2a51f6b1605e85065934f) Fix Upload Lookup ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/controllers/SearchController.js` (+2 -2) 📝 `server/finders/BookFinder.js` (+1 -1) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary When uploading a book through the interface and pressing the "Automatically fetch..." button, it fails because a recent refactor in the finder logic now requires a libraryId to be provided. Since any item not yet uploaded has no id, this caused the error. This PR fixes the issue and makes the button work again. It also disables the heuristic for scoring and sorting since it is not available anyway if there is no id available. Currently, the API returns a low confidence score when not providing an id, which is incorrect. ## Which issue is fixed? DC ## In-depth Description See above ## How have you tested this? Uploaded and matched book ## Screenshots <!-- If your PR includes any changes to the web client, please include screenshots or a short video from before and after your changes. --> --- <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:19:25 +02:00
adam closed this issue 2026-04-25 00:19:25 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4358