mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 04:15:09 +00:00
fix(manifests): skip a DASH Representation or HLS variant with an unknown codec
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user