Skip to content

Fix url issues#411

Open
pabs3 wants to merge 2 commits into
globocom:masterfrom
pabs3:fix-url-issues
Open

Fix url issues#411
pabs3 wants to merge 2 commits into
globocom:masterfrom
pabs3:fix-url-issues

Conversation

@pabs3
Copy link
Copy Markdown

@pabs3 pabs3 commented Mar 19, 2026

  • Do not add trailing slash "/" character to the base URI
  • Use absolute URIs for the M3U8 files attribute

pabs3 added 2 commits March 19, 2026 12:36
This results in incorrect URIs when the m3u8 file contains
relative URIs instead of absolute URIs.

The Python urllib.parse.urljoin() function used since 2023 handles
joining URIs correctly for both absolute and relative URIs.

Example: https://ubu-mirror.ch/hls/121812986/master.m3u8
Example: https://ubu-mirror.ch/hls/121812986/index-v1-a1.m3u8
Example: https://ubu-mirror.ch/hls/121812986/iframes-v1-a1.m3u8
Fixes: commit 8c1a047
This will mean callers don't have to manually call urljoin.

Most M3U8 playlists will use absolute URIs anyway.

See-also: globocom#9
Fixes: commit 638ab86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant