forked from kenzuya/unshackle
feat(music): list and select playlist songs by their position
This commit is contained in:
@@ -204,6 +204,12 @@ Each subclass adds its own required fields on top of `id_` and `service`:
|
||||
final audio file under that suffix.
|
||||
You can set these fields in `get_tracks()` too, and a remote client gets them back.
|
||||
|
||||
For a playlist whose songs keep the tags of their own album, give `position` (a positive integer,
|
||||
from 1) to every song. The track list, the download order and `-w` then use that number. The
|
||||
tags, the file name and the folder keep `track`, `disc` and `album`. Set it in `get_titles()`,
|
||||
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.
|
||||
|
||||
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