Before this fix, the m3u8 lib only appended alternatives that appeared in the playlist directly before a variant. This broke alternative audio processing since these are typically declared all at once at the top of the playlist (see https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-9.6). This fixes #160 and #96.
Before this fix, the m3u8 lib only appended alternatives that appeared in the playlist directly before a variant. This broke alternative audio processing since these are typically declared all at once at the top of the playlist (see https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-9.6). This fixes #160 and #96.