Skip to content

Add Channels creates duplicate channel id's #63

@markcs

Description

@markcs

Summary

When trying to create a channel with a curl POST command, I am getting channels with duplicate channel ids.

curl -d "@channel.json" -X POST 'https://<server ip>/api/channels'
{"id":338,"sessionUrl":null,"headers":[],"group":null,"playlist":null,"playlistName":null,"playlistUpdate":false}

and then, for this example:

curl -s 'https://<server ip>/api/channels/' | jq | grep 338
    "id": 338,
    "id": 338,

Two channels with id 338 are created. This causes the frontend not to load.

I am also not able to create a channel successfully using the following json template. Is this correct?

  {
    "name": "channel name (mandatory)",
    "url": "channel url (mandatory)",
    "sessionUrl": null,
    "avatar": "channel avatar url (optional)",
    "mode": "one of direct/proxy/restream",
    "headers": [],
    "group": null,
    "playlist": null,
    "playlistName": null,
    "playlistUpdate": true or false

  }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions