Comcast / mamba

Mamba is a Swift iOS, tvOS and macOS framework to parse, validate and write HTTP Live Streaming (HLS) data.
Apache License 2.0
178 stars 39 forks source link

One character urls do not parse successfully. #1

Closed dcoufal closed 6 years ago

dcoufal commented 6 years ago

Expected Behavior

If you parse the playlist

#EXT3MU
#EXTINF:5000
a

You should see the a line as a Location URL tag.

Observed Behavior

Parsing such a playlist gives no location. The line is completely skipped.

It's worth noting that this playlist:

#EXT3MU
#EXTINF:5000
aa

does produce the correct, expected Location URL tag with the value aa

Reproduction Steps

  1. Use the HLSParser to parse a playlist containing a Location URL that has one character.
  2. Examine the output HLSPlaylist. You will not see that Location URL in the output.

Observed on device(s):

Observed on OS Version(s):

dcoufal commented 6 years ago

This is tied to local Comcast issue 554.

dcoufal commented 6 years ago

Also worth noting this is very unlikely to occur in a real world playlist.

dcoufal commented 6 years ago

Fixed in #2