Closed fireattack closed 1 year ago
You're right that the only thing available is the base_uri
. But since this is a Python object, you can solve your problem in one line:
>>> import m3u8
>>> playlist_uri = "https://example.com/live/something.m3u8?para=value"
>>> m = m3u8.load(playlist_uri)
>>> m.original_uri = playlist_uri
>>> m.original_uri
'https://example.com/live/something.m3u8?para=value'
thanks, that works.
Say I loaded an URI into m3u8 object with:
Afterwards I cannot retrieve the original URL (
https://example.com/live/something.m3u8?para=value
) fromm
anymore. It only seems to havem.base_uri
(which would behttps://example.com/live/
), not anything about path, query parameters, etc.That makes processing m3u8 kinda complicated in certain scenarios since only passing the object around isn't enough.