Right now, marshaling Master playlists fails if the file contains EXT-X-MEDIA-SEQUENCE.
The reason is that we check tags with String.starts_with?/2, which returns true for master EXT-X-MEDIA tag.
This PR implements stricter tags check with:
line == prefix or String.starts_with?(line, prefix <> ":")
Right now, marshaling Master playlists fails if the file contains
EXT-X-MEDIA-SEQUENCE
. The reason is that we check tags withString.starts_with?/2
, which returnstrue
for masterEXT-X-MEDIA
tag.This PR implements stricter tags check with: