-
Notifications
You must be signed in to change notification settings - Fork 50
Builder with playlist without Program id crashes #4
Copy link
Copy link
Open
Description
Hi! First of all thank you for this awesome library:)
Here is the issue that I've encountered while I was using it.
I was trying to parse Master Playlist from the string that I'm receiving from the server.
It crashes because of force unwrapping optional.
Bug related to the regex that I couldn't understand how to fix.
Here is the test case that reproduces the problem:
func testBuilder_WithoutProgramID_ShouldNotFail() {
let builder = ManifestBuilder()
_ = builder.parseMasterPlaylistFromString("#EXTM3U\n#EXT-X-VERSION:2\n#EXT-X-STREAM-INF:BANDWIDTH=300000\ntrack_0_300/playlist.m3u8?t=1482930352&h=VBNpRGL+iqMhSUWVV3IQ4w==\n")
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels