Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Target host is not specified with HLS relative urls in m3u8 playlists #48

Merged
merged 5 commits into from
Dec 26, 2023

Conversation

devoxin
Copy link
Member

@devoxin devoxin commented Dec 1, 2023

This PR attempts to rectify an issue within HLS parsing where relative URLs are not converted to an absolute URL, causing a Target host is not specified error message due to missing first part of the URL (thus, Lavaplayer doesn't know where to connect to, to grab the next segments in the playlist).

This has only been tested with https://hls-01-radiorecord.hostingradio.ru/record/112/playlist.m3u8.

I would advise further testing, including URLs from playlists containing absolute URLs to ensure backwards compatibility. I've tried to ensure this won't affect previously supported URLs however more testing is always welcome, as well as any general feedback.

@devoxin devoxin merged commit 29d3133 into main Dec 26, 2023
1 check passed
@topi314 topi314 deleted the fix/hls-relative-urls branch January 2, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants