- SubtitleApiFp(configuration?): {
deleteSubtitle(itemId: string, index: number, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
downloadRemoteSubtitles(itemId: string, subtitleId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
getFallbackFont(name: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getFallbackFontList(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<FontFile[]>)>;
getRemoteSubtitles(subtitleId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getSubtitle(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, startPositionTicks?: number, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getSubtitlePlaylist(itemId: string, index: number, mediaSourceId: string, segmentLength: number, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getSubtitleWithTicks(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeStartPositionTicks: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, startPositionTicks?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
searchRemoteSubtitles(itemId: string, language: string, isPerfectMatch?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoteSubtitleInfo[]>)>;
uploadSubtitle(itemId: string, uploadSubtitleDto: UploadSubtitleDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
} Returns {
deleteSubtitle(itemId: string, index: number, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
downloadRemoteSubtitles(itemId: string, subtitleId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
getFallbackFont(name: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getFallbackFontList(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<FontFile[]>)>;
getRemoteSubtitles(subtitleId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getSubtitle(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, startPositionTicks?: number, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getSubtitlePlaylist(itemId: string, index: number, mediaSourceId: string, segmentLength: number, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
getSubtitleWithTicks(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeStartPositionTicks: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, startPositionTicks?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
searchRemoteSubtitles(itemId: string, language: string, isPerfectMatch?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoteSubtitleInfo[]>)>;
uploadSubtitle(itemId: string, uploadSubtitleDto: UploadSubtitleDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
}
deleteSubtitle:function
- deleteSubtitle(itemId, index, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>
Parameters
- itemId: string
- index: number
Optional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>
downloadRemoteSubtitles:function
- downloadRemoteSubtitles(itemId, subtitleId, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>
Parameters
- itemId: string
- subtitleId: string
Optional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>
getFallbackFont:function
- getFallbackFont(name, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
Parameters
- name: string
Optional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
getFallbackFontList:function
- getFallbackFontList(options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<FontFile[]>)>
Parameters
Optional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<FontFile[]>)>
getRemoteSubtitles:function
- getRemoteSubtitles(subtitleId, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
Parameters
- subtitleId: string
Optional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
getSubtitle:function
- getSubtitle(routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId?, mediaSourceId?, index?, format?, endPositionTicks?, copyTimestamps?, addVttTimeMap?, startPositionTicks?, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
Parameters
- routeItemId: string
- routeMediaSourceId: string
- routeIndex: number
- routeFormat: string
Optional
itemId: stringOptional
mediaSourceId: stringOptional
index: numberOptional
format: stringOptional
endPositionTicks: numberOptional
copyTimestamps: booleanOptional
addVttTimeMap: booleanOptional
startPositionTicks: numberOptional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
getSubtitlePlaylist:function
- getSubtitlePlaylist(itemId, index, mediaSourceId, segmentLength, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
Parameters
- itemId: string
- index: number
- mediaSourceId: string
- segmentLength: number
Optional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
getSubtitleWithTicks:function
- getSubtitleWithTicks(routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId?, mediaSourceId?, index?, startPositionTicks?, format?, endPositionTicks?, copyTimestamps?, addVttTimeMap?, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
Parameters
- routeItemId: string
- routeMediaSourceId: string
- routeIndex: number
- routeStartPositionTicks: number
- routeFormat: string
Optional
itemId: stringOptional
mediaSourceId: stringOptional
index: numberOptional
startPositionTicks: numberOptional
format: stringOptional
endPositionTicks: numberOptional
copyTimestamps: booleanOptional
addVttTimeMap: booleanOptional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>
searchRemoteSubtitles:function
- searchRemoteSubtitles(itemId, language, isPerfectMatch?, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoteSubtitleInfo[]>)>
Parameters
- itemId: string
- language: string
Optional
isPerfectMatch: booleanOptional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoteSubtitleInfo[]>)>
uploadSubtitle:function
- uploadSubtitle(itemId, uploadSubtitleDto, options?): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>
Parameters
- itemId: string
- uploadSubtitleDto: UploadSubtitleDto
Optional
options: RawAxiosRequestConfig
Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>
SubtitleApi - functional programming interface
Export