Skip to content

Allow server search after library sync - #342

Open
giacolees wants to merge 1 commit into
ghenry22:masterfrom
giacolees:server-search-after-sync
Open

giacolees wants to merge 1 commit into
ghenry22:masterfrom
giacolees:server-search-after-sync

Conversation

@giacolees

Copy link
Copy Markdown

Summary

A Subsonic server can return tracks, albums and artists outside the library it exposes for sync. Once both sync phases complete, the search box has no way to ask the server for those results.

This adds an opt-in Include server search results switch under Settings → Server & Account. With the switch on, matching SQLite results appear immediately, followed by the reachable server's search3 results. The merge keeps local entries first and deduplicates each category by ID. Offline searches still use downloaded music.

Related to #321 and #335. This implementation stores the preference in a search settings store and covers server-only IDs through the existing detail and playback paths.

Verification

  • npm run local-ci
  • npx madge --circular --extensions ts,tsx src

Add an opt-in setting for servers that return matches beyond the synced library. Surface local results immediately and merge additional search3 results by ID.

This branch has not been deployed

No deployments
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.

1 participant