fix(manifests): skip a DASH Representation or HLS variant with an unknown codec

This commit is contained in:
imSp4rky
2026-11-28 14:46:06 -07:00
parent 0bd5c4de4f
commit fd1b9254ee
5 changed files with 130 additions and 21 deletions
+4
View File
@@ -364,6 +364,10 @@ A typical `get_tracks` therefore looks like fetching the manifest text with
language. For HLS, `to_tracks` uses this fallback directly for the primary track,
because HLS variants carry no language.
DASH and HLS `to_tracks` skip a Representation or variant whose codec unshackle does not
know, and log one warning with its codec string. They raise `ValueError` only when they skip at
least one and no track is left.
### Segment-filtering hooks
- **HLS**: set `track.OnSegmentFilter(segment)` to drop unwanted segments (ads/bumpers).