UNPKG

youtubei

Version:

Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!

31 lines (30 loc) 872 B
import { VideoCaptions } from "../BaseVideo"; import { Caption } from "./Caption"; /** @hidden */ interface CaptionLanguageProperties { name?: string; code?: string; isTranslatable?: boolean; url?: string; captions?: VideoCaptions; } /** * Represents a caption language option */ export declare class CaptionLanguage implements CaptionLanguageProperties { /** Caption language name */ name: string; /** Caption language code */ code: string; /** Whether this language is translatable */ isTranslatable: boolean; /** Caption language url */ url: string; /** @hidden */ captions: VideoCaptions; /** @hidden */ constructor(attr?: CaptionLanguageProperties); /** Get the captions of this language using the url */ get(translationLanguageCode?: string): Promise<Caption[] | undefined>; } export {};