fix(tracks): show the audio bit depth and sample rate in the track listing only for a song

This commit is contained in:
imSp4rky
2026-12-05 14:55:11 -07:00
parent 0d9050e68e
commit 783a2fc185
6 changed files with 59 additions and 18 deletions
+2 -2
View File
@@ -208,8 +208,8 @@ Each subclass adds its own required fields on top of `id_` and `service`:
options, `-a`/`--acodec` and `--abitrate`, and its usual audio sorting. A movie or an
episode uses the same options. `-q`/`--quality` sets the video height only and does not
apply to music. The audio sort ranks a hi-res FLAC above a CD FLAC by `bitrate`. Set
`bit_depth` and `sample_rate` (Hz) on each `Audio` track, and `--list` shows them as
"24-bit / 96 kHz", so do not write that text into `name`. The same two keys in
`bit_depth` and `sample_rate` (Hz) on each `Audio` track, and `--list` shows them for a
`Song` as "24-bit / 96 kHz", so do not write that text into `name`. The same two keys in
`Song.data` give the Hi-Res badge in the release listing.
When the first song's `Song.data` has no bit depth or sample rate, or a lower one, `dl`
+4 -4
View File
@@ -324,7 +324,7 @@ unshackle dl -a AAC -ab 320 EXAMPLE 81234567
A service can offer both a CD FLAC and a hi-res FLAC. The two have the same codec, so
the bitrate is what separates them. Use `--list` to read the bitrates, then give `-ab`
the one you want. When the service gives them, `--list` also shows the bit depth and
sample rate, such as "24-bit / 96 kHz".
sample rate of a song, such as "24-bit / 96 kHz". A movie or an episode does not show them.
## Languages
@@ -920,9 +920,9 @@ tracks from those URLs. If such an export does not give the title a language, `o
value: select the languages with `-l` and `-vl`.
Each exported track keeps the values that the service set on it, also when the import parses
the manifest again: for example Atmos, the bit depth, the sample rate and the note at the end of
its `--list` line. A track that the export does not hold shows only what the manifest gives. A
song imports as a song, with its artist, album and track number. An export that an older
the manifest again: for example Atmos, the note at the end of its `--list` line, and the bit
depth and sample rate of a song. A track that the export does not hold shows only what the
manifest gives. A song imports as a song, with its artist, album and track number. An export that an older
unshackle wrote records a song as a movie. Its import then stops at the video selection, because
a song has no video track. Export the song again.