fix(audio): accept immersive channel layouts like 5.1.4

parse_channels rejected a three-figure layout, so a remote download crashed rebuilding the track from JSON. Add channel_total so --channels can compare either form.
This commit is contained in:
imSp4rky
2026-09-04 19:27:39 -06:00
parent 55bed4876c
commit dffb72e41d
4 changed files with 74 additions and 7 deletions
+2 -1
View File
@@ -229,7 +229,8 @@ unshackle dl -a EC3,AAC EXAMPLE 81234567
### Channels and Atmos
- `-c` / `--channels`: desired channel layout, for example `5.1` or `2.0`. Matching is by
ceiling, so `5.1` implicitly matches a `6.0`-reported layout.
ceiling, so `5.1` implicitly matches a `6.0`-reported layout. An immersive layout such as
`5.1.4` matches on its total number of channels, so `-c 10` selects it.
- `-naa` / `--noatmos`: exclude Atmos audio tracks from selection.
```shell title="5.1 audio, no Atmos"