Skip to content

Bad JSON value due to bad parsing of M3U file #1

Description

@eoksum

Hi,
I'm currently having a problem with Kysa. I imported Turkish stream from iptv-org repository which can be found here:
https://github.com/iptv-org/iptv/blob/master/streams/tr.m3u

I load that list to Kysa as instructed on README and visit the website however no channel is present. The page is empty. I decided to investigate this issue deeper from Inspector at my browser. I copied the returned JSON value from /channels endpoint and found this issue:

Parse error on line 1:
...9.25 Safari/537.36",24 TV (1080p)" }, {
-----------------------^
Expecting 'STRING', got 'NUMBER'

It seems Kysa isn't parsing the M3U file properly. It seems to miss the user-agent parameter in M3U file and mistake it as channel name.
I'm not a Golang pro but I'll try to fix this as much as I can and if I can make it work, I'll submit a merge request.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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