SubtitleApi

class SubtitleApi(api: ApiClient) : Api

Constructors

Link copied to clipboard
constructor(api: ApiClient)

Functions

Link copied to clipboard
suspend fun deleteSubtitle(itemId: <Error class: unknown class>, index: Int): Response<Unit>

Deletes an external subtitle file.

Link copied to clipboard
suspend fun downloadRemoteSubtitles(itemId: <Error class: unknown class>, subtitleId: String): Response<Unit>

Downloads a remote subtitle.

Link copied to clipboard
suspend fun getFallbackFont(name: String): Response<<Error class: unknown class>>

Gets a fallback font file.

Link copied to clipboard
suspend fun getFallbackFontList(): Response<List<<Error class: unknown class>>>

Gets a list of available fallback font files.

Link copied to clipboard

Gets a fallback font file.

Link copied to clipboard
suspend fun getRemoteSubtitles(subtitleId: String): Response<String>

Gets the remote subtitles.

Link copied to clipboard
suspend fun getSubtitle(request: <Error class: unknown class>): Response<String>
suspend fun getSubtitle(routeItemId: <Error class: unknown class>, routeMediaSourceId: String, routeIndex: Int, routeFormat: String, endPositionTicks: Long? = null, copyTimestamps: Boolean? = false, addVttTimeMap: Boolean? = false, startPositionTicks: Long? = 0): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun getSubtitleDeprecated(request: <Error class: unknown class>): Response<String>
suspend fun getSubtitleDeprecated(routeItemId: <Error class: unknown class>, routeMediaSourceId: String, routeIndex: Int, routeFormat: String, itemId: <Error class: unknown class>? = null, mediaSourceId: String? = null, index: Int? = null, format: String? = null, endPositionTicks: Long? = null, copyTimestamps: Boolean? = false, addVttTimeMap: Boolean? = false, startPositionTicks: Long? = 0): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun getSubtitlePlaylist(itemId: <Error class: unknown class>, index: Int, mediaSourceId: String, segmentLength: Int): Response<<Error class: unknown class>>

Gets an HLS subtitle playlist.

Link copied to clipboard
fun getSubtitlePlaylistUrl(itemId: <Error class: unknown class>, index: Int, mediaSourceId: String, segmentLength: Int): String

Gets an HLS subtitle playlist.

Link copied to clipboard
suspend fun getSubtitleWithTicks(request: <Error class: unknown class>): Response<String>
suspend fun getSubtitleWithTicks(routeItemId: <Error class: unknown class>, routeMediaSourceId: String, routeIndex: Int, routeStartPositionTicks: Long, routeFormat: String, endPositionTicks: Long? = null, copyTimestamps: Boolean? = false, addVttTimeMap: Boolean? = false): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun getSubtitleWithTicksDeprecated(request: <Error class: unknown class>): Response<String>
suspend fun getSubtitleWithTicksDeprecated(routeItemId: <Error class: unknown class>, routeMediaSourceId: String, routeIndex: Int, routeStartPositionTicks: Long, routeFormat: String, itemId: <Error class: unknown class>? = null, mediaSourceId: String? = null, index: Int? = null, startPositionTicks: Long? = null, format: String? = null, endPositionTicks: Long? = null, copyTimestamps: Boolean? = false, addVttTimeMap: Boolean? = false): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun searchRemoteSubtitles(itemId: <Error class: unknown class>, language: String, isPerfectMatch: Boolean? = null): Response<List<<Error class: unknown class>>>

Search remote subtitles.

Link copied to clipboard
suspend fun uploadSubtitle(itemId: <Error class: unknown class>, data: <Error class: unknown class>): Response<Unit>

Upload an external subtitle file.