[Bug]: Trim whitespace when adding Custom Metadata Provider #2633

Closed
opened 2026-04-25 00:09:08 +02:00 by adam · 1 comment
Owner

Originally created by @nichwall on GitHub (Mar 2, 2025).

What happened?

Custom metadata provider searches will fail if trailing whitespace exists when building the search query.

What did you expect to happen?

Whitespace trimmed.

Steps to reproduce the issue

  1. Create new metadata provider with whitespace at the end
  2. Do a search
  3. Observe space inserted between the domain and the query string

Audiobookshelf version

v2.19.5

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

[CustomMetadataProvider] Search url: https://provider.vito0912.de/goodreads /search?mediaType=book&query=Cujo&author=Stephen+King

Additional Notes

No response

Originally created by @nichwall on GitHub (Mar 2, 2025). ### What happened? Custom metadata provider searches will fail if trailing whitespace exists when building the search query. ### What did you expect to happen? Whitespace trimmed. ### Steps to reproduce the issue 1. Create new metadata provider with whitespace at the end 2. Do a search 3. Observe space inserted between the domain and the query string ### Audiobookshelf version v2.19.5 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell [CustomMetadataProvider] Search url: https://provider.vito0912.de/goodreads /search?mediaType=book&query=Cujo&author=Stephen+King ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:09:08 +02:00
adam closed this issue 2026-04-25 00:09:08 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 17, 2025):

Fixed in v2.20.0.

@github-actions[bot] commented on GitHub (Mar 17, 2025): Fixed in [v2.20.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.20.0).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2633