API Specificationxmb.api.v1.TunerService
Add a source
Adds an HDHomeRun or M3U source to a tuner. A secret, when given, is encrypted and never returned.
Required scopes: xmb:admin
Authorization
BearerAuth AuthorizationBearer <token>
An access token issued by the xeonr identity provider.
In: header
Header Parameters
Connect-Protocol-Version?number
Define the version of the Connect protocol
Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
serverSlug?string
Length
1 <= lengthtunerUuid?string
Format
uuidkind?not unknown
Value in
"SOURCE_KIND_UNSPECIFIED" | "SOURCE_KIND_HDHOMERUN" | "SOURCE_KIND_M3U"name?string
Length
1 <= length <= 128config?
secret?|
M3U: the playlist URL, which carries the account. Encrypted at rest, never returned.
Length
length <= 4096tunerCount?|
M3U: the provider's connection limit. HDHomeRun reports its own.
Format
int32Range
1 <= value <= 64[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.TunerService/CreateLiveSource" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"source": "map[config:map[epg_url:https://iptv.example.net/xmltv.php] hasSecret:true kind:SOURCE_KIND_M3U name:IPTV subscription status:pending tunerCount:2 tunerUuid:7c9e2f14-6a3b-4d58-b0e1-3f2a8c5d9e61 uuid:e3f1a5c7-9b2d-4e8f-a6c4-0d1e2f3a4b55]"
}