When m3u list url have a token in parameters, archive links are broken.
Describe the bug
When the M3U link includes a token parameter, the catch-up archive parameters are incorrectly appended using a second ? character.
For example:
https://provider.xyz/222/playback.m3u8?token=secret
Results in a broken archive link like:
https://provider.xyz/222/playback.m3u8?token=secret?utc=111111&lutc=1112222
To Reproduce
Steps to reproduce the behavior:
- Go to Settings
- Change the player to VLC
- Go to EPG and try to play back past show content
- See the error in VLC and inspect the URL
Expected behavior
The app should check if the link already contains a ? character and use & instead for additional parameters.
The correct link should be:
https://provider.xyz/222/playback.m3u8?token=secret&utc=111111&lutc=1112222
I copied the URL from the VLC error message, replaced the second ? with &, and playback worked correctly.
Desktop (please complete the following information):
- OS: MacOS
- Version 0.16.0
Additional context Problem occurs in all internal and external players
Source: 4gray/iptvnator