selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
630 stars 158 forks source link

'&' in key-file URL gets parsed out #91

Open Pfuenzle opened 3 years ago

Pfuenzle commented 3 years ago

In the method parse_tag in hls.c, in line 284 & 285 (https://github.com/selsta/hlsdl/blob/84c1ded36801a8af850c89fa89c305d5b206418f/src/hls.c#L284) , where the URL to the key-file gets parsed, if the link is containing a '&', the & and everything after it gets ignored. This causes a 404 error, if that part is needed for a working URL, as seen here: https://github.com/selsta/hlsdl/issues/81

I tried some thing to make it not ignore it, but I was not able to, as Im not familiar with this kind of parsing