Skip to content

When m3u list url have a token in parameters, archive links are broken. #579

@intonet

Description

@intonet

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:

  1. Go to Settings
  2. Change the player to VLC
  3. Go to EPG and try to play back past show content
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions