selsta / hlsdl

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

URLs to media segments incorrectly formed #93

Closed vivook closed 3 years ago

vivook commented 3 years ago

I have a m3u8 file at:

https://example.com/blah/1234/abc/xyz.php/12341234-audio=999-video=555.m3u8

It contain entries like this:

12341234-audio=999-video=555-18.ts?ts=1608135475&s=xxx/YYY/zzz=

hlsdl tries to down the segment from below URL:

https://example.com/blah/1234/abc/xyz.php/12341234-audio=999-video=555.m3u8/../12341234-audio=999-video=555-18.ts?ts=1608135475&s=xxx/YYY/zzz=

Which is incorrect. Correct URL would be:

https://example.com/blah/1234/abc/xyz.php/12341234-audio=999-video=555-18.ts?ts=1608135475&s=xxx/YYY/zzz=
selsta commented 3 years ago

Shouldn’t both be equivalent?

vivook commented 3 years ago

Yes, curl fixes URL. This is not my issue. Sorry.