m3u8-rs: alternatives does not contain audio playlist after upgrading from 3.0.0 to 5.0.3
Hi, I recently upgraded from 3.0.0 to 5.0.3 and now my audio playlist ends up in unknown_tags instead of in alternatives.
What am I doing wrong?
Here is the master playlist, slightly anonymized
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA:LANGUAGE="en",AUTOSELECT=YES,FORCED=NO,TYPE=AUDIO,URI="https://xyz.com/a/playlist.m3u8",GROUP-ID="audio",DEFAULT=YES,NAME="Audio"
#EXT-X-STREAM-INF:RESOLUTION=3840x2160,FRAME-RATE=25.0,BANDWIDTH=6878544,AUDIO="audio"
https://xyz.com/b/playlist.m3u8
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 16 (5 by maintainers)
@vagetman @rutgersc We could also add a “strict” flag to the parser and only when that is set to
trueit would fail parsing such things, otherwise just ignore as much as possible.Ah, thank you @bes
@vagetman Please feel free to take over here. I’m extremely busy with work-related tasks currently and this keeps getting behind on my todo list. Sorry for that.
FWIW this is exactly the reason why we’re in this situation now. Because the parsers are very forgiving, most of the HLS streams are complete garbage and hard to handle. It’s the same with various other formats.
At this point it’s the only valid approach for HLS though, that ship has sailed. And additional attributes that have no valid meaning is the least of the problems in that regard 😃