stremio-addon-sdk

Subtitles Object

Used as a response for defineSubtitlesHandler

id - required - string, unique identifier for each subtitle, if you have more than one subtitle with the same language, the id will differentiate them

url - required - string, url to the subtitle file

lang - required - string, language code for the subtitle, if a valid ISO 639-2 code is not sent, the text of this value will be used instead

label - optional - string, label shown in the subtitle picker instead of the language name; useful when providing multiple subtitles for the same language (e.g. "English [CC]", "eng #1 [opensubtitles] 1080p.BluRay"); if omitted, the language name derived from lang is displayed

Tips