Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.LibraryService

Apply subtitle

POST
/xmb.api.v1.LibraryService/ApplySubtitle

Has the retrieval service cache one candidate and the hub write it beside the file, then re-probes the file so the track is playable at once.

Required scopes: xmb:user:read

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
Length1 <= length <= 128
mediaFileUuid?string
Formatuuid
provider?string
Length1 <= length <= 64
fileId?string
Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.LibraryService/ApplySubtitle" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "path": "TV/Severance/Season 01/Severance - S01E01.en.srt",
  "language": "en",
  "alreadyPresent": "false",
  "subtitleTrackId": "x48-nceSeason01Severance-S01E01ensrt"
}