Add content from another source
/editor/playlists/{pid}/add-source/write Change: creates or edits. Scopes
Adds what another source has to the playlist, in a background task. A link already in the playlist is not added again, and a category with the same name is reused. kinds: channels (live, the default), movie and series. attributes: what to take from the source besides names and links (default: category and logo). categories: per kind, the ids of the source's categories to take (from a read of its categories); the others come in already in the bin.
Path parameters
pidstring (uuid)required
Body
sourceobjectrequiredtypestringWhere the list comes from. Leave it out to name a provider instead.
xtream- A provider login: url (the server), username and passwordm3u- An M3U address: urlfile- An M3U file sent with POST /editor/uploads/: upload
urlstringThe server (
xtream) or the M3U address (m3u).usernamestringpasswordstringformatstringHow channel links are written (
xtream):ts(the default),live_tsorlive_hls.uploadstringThe id
POST /editor/uploads/answered (file).providerintegerOne of the playlist's providers, by id, instead of the above.
kindsstring[]One of:
"live""movie""series"Default:
["live"]attributesstring[]One of:
"category""logo""epg_id""epg_shift""number"Default:
["category","logo"]categoriesobject
Response
202 OK
jobstring (uuid)requiredThe background task: follow it with
GET /editor/jobs/{id}/(/editor/api/v1/jobs/{id}/with a token).
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404 Nothing with this id, or nothing the account can see.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.