mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-14 13:27:09 +02:00
Entity-level artwork queries now take a typed model.Kind instead of a bare prefix string. GetItemArtwork, DeleteForItem(s), GetInfoForItems, EnqueueStaleAbsent, hydrateItemImages, enqueueBackfillKind and artwork.Refresh convert to the prefix string only at the two real boundaries: the SQL item_kind column (kind.Prefix() inside each repo) and external string inputs (a new model.ParseKind for the nativeapi URL param, which also validates it). The Backfill/stale-absent kind slices, the resolve.go dispatch switch, and the kind→resource / kind→table lookup maps now use the Kind vars directly. The queue lifecycle methods (MarkFailed/Delete*) keep string kinds — they operate on a dequeued item's raw ItemKind column, which stays a string field, always populated via kind.Prefix(). Removes every bare "al"/"ar"/… prefix literal from non-test code (27 -> 0); behavior is unchanged. |
||
|---|---|---|
| .. | ||
| doc.go | ||
| e2e_suite_test.go | ||
| subsonic_album_lists_test.go | ||
| subsonic_artwork_test.go | ||
| subsonic_bookmarks_test.go | ||
| subsonic_browsing_test.go | ||
| subsonic_lyrics_test.go | ||
| subsonic_media_annotation_test.go | ||
| subsonic_media_retrieval_test.go | ||
| subsonic_multilibrary_test.go | ||
| subsonic_multiuser_test.go | ||
| subsonic_playlists_test.go | ||
| subsonic_radio_test.go | ||
| subsonic_scan_test.go | ||
| subsonic_searching_test.go | ||
| subsonic_sharing_test.go | ||
| subsonic_sonic_similarity_test.go | ||
| subsonic_stream_test.go | ||
| subsonic_system_test.go | ||
| subsonic_transcode_test.go | ||
| subsonic_users_test.go | ||