Skip to content

use browser headers for audiobookbay#52

Merged
JeremiahM37 merged 1 commit into
JeremiahM37:mainfrom
sgerner:codex/abb-browser-headers
Jun 1, 2026
Merged

use browser headers for audiobookbay#52
JeremiahM37 merged 1 commit into
JeremiahM37:mainfrom
sgerner:codex/abb-browser-headers

Conversation

@sgerner
Copy link
Copy Markdown

@sgerner sgerner commented May 31, 2026

What changed

  • AudioBookBay requests now use a browser-like header set instead of the generic Librarr UA.
  • The ABB search path and ABB magnet resolver both apply the same headers.
  • Added tests that assert the outbound ABB request sends the expected User-Agent and related browser headers.

Why

AudioBookBay was rejecting librarr’s default request identity in this environment. A browser-style request profile is required for the ABB search and detail pages to return usable HTML.

Impact

  • ABB search results should continue to work without a proxy workaround.
  • Magnet resolution for ABB detail pages uses the same request profile.
  • Other search sources are unchanged.

Validation

  • go test ./internal/search -run 'TestAudioBookBay|TestResolveABBMagnet|TestRegistryFlow'
  • go test ./internal/search

Notes

This fix is intentionally scoped to AudioBookBay so it does not change the request identity used by the rest of librarr.

@sgerner sgerner marked this pull request as ready for review May 31, 2026 23:37
@JeremiahM37 JeremiahM37 self-assigned this Jun 1, 2026
@JeremiahM37 JeremiahM37 assigned sgerner and unassigned JeremiahM37 and sgerner Jun 1, 2026
@JeremiahM37 JeremiahM37 merged commit 8c46893 into JeremiahM37:main Jun 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants