mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-01 21:45:10 +00:00
fix(music): show a collection's own facts in the listing and over --remote
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user