fix(music): show a collection's own facts in the listing and over --remote

This commit is contained in:
imSp4rky
2026-11-30 13:33:31 -07:00
parent 70ace41201
commit 3634fc5686
18 changed files with 575 additions and 65 deletions
+8
View File
@@ -210,6 +210,14 @@ Each subclass adds its own required fields on top of `id_` and `service`:
because a remote client does not read it again after the listing. Such a song also needs an `id` that
stays the same in each listing: `position` does not identify it.
`Album` and `Music` take the facts of the collection itself: `kind`, `title`, `artist`, `year`,
`total_tracks`, `total_discs`, `artwork_url`, `total_duration`, `owner` and `description`. A
remote client gets all of them. When every song has the same `album` and `album_artist`, the listing
takes a `title`, `artist` or `year` that you do not give, and the release date, quality, genre and
label, from the first song. The listing of any other collection, such as a playlist of single songs,
has no line for them. `build_music_from_songs` uses the same test before it takes the title, artist, year, artwork or
totals from the songs.
The tagger also falls back to `Song.data` for fields the constructor did not get, such
as the composer or a full release date. It reads the top level of that dict and a
nested `metadata` sub-dict, with the nested keys winning, so either shape works. The keys