feat: data lifecycle rewrite, download clients, wanted list, and central catalog index
Build & publish Arch package / arch-package (push) Successful in 2m12s
Search index maintenance / maintain-index (push) Successful in 2h22m28s

Ships the fresh-start schema cleanup: rebuilt explore catalog index
pipeline (dump import, artifact fetch/build, incremental listen-count
refresh), a new download subsystem (Lidarr/Prowlarr/qBittorrent/SABnzbd/
slskd/yt-dlp providers, staging, reconciliation, wanted list), and the
supporting schema/query/store changes across backend and frontend.

Also includes two smaller follow-ups: bump the central index's
rebuild-after cadence from 90 to 180 days, and remove the Explore
"library only" online/offline toggle entirely (frontend-only, no
backend counterpart) rather than carry unused UI/state.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y2Agd9af5hE7qzti2ackiS
This commit is contained in:
2026-08-06 17:12:01 -04:00
co-authored by Claude Sonnet 5
parent d0d86f85d5
commit e190fd75b9
165 changed files with 31088 additions and 5192 deletions
+8 -4
View File
@@ -149,6 +149,12 @@ func (e *Service) StopIndexBuild() {
e.index.StopBuild()
}
// CoreCatalogImported reports whether a prebuilt catalog artifact has
// been merged into this index.
func (e *Service) CoreCatalogImported() bool {
return e.index.artifactAlreadyMerged()
}
// SetJobRegistry wires the background job registry into the search
// index so its build reports progress and controls to the frontend.
func (e *Service) SetJobRegistry(reg *jobs.Registry) {
@@ -565,8 +571,7 @@ func (e *Service) resolveArtistName(artistMBID string, rgs []MBReleaseGroup) str
// Check the index for a previously-indexed artist row.
if indexed := e.index.LookupArtistByMBID(
artistMBID,
); indexed != nil && indexed.Title != "" &&
indexed.Title != artistMBID {
); indexed != nil && indexed.Title != "" {
return indexed.Title
}
@@ -1048,8 +1053,7 @@ func (e *Service) GetArtistImageURL(artistMBID string) string {
// GetArtistImageCached returns a base64 data URL for the artist's
// photo ONLY if it's already on disk — no MB/Wikidata resolution
// or Wikimedia fetch. Safe to call from library-only mode.
// Returns "" if not cached.
// or Wikimedia fetch. Returns "" if not cached.
func (e *Service) GetArtistImageCached(artistMBID string) string {
return e.artistImg.GetCachedImage(artistMBID)
}