Add subtitle metadata and improve downloader UI
Expose subtitle information in the API and update the frontend to use it: backend adds subtitle_languages and has_subtitles to the downloader serializer/response (computed from subtitles and automatic_captions). Generated TypeScript models (public & private) now include these fields. Downloader UI: gather available subtitle languages, show a select when languages exist, provide contextual input/placeholder when only auto-captions exist, and disable/annotate embed controls when subtitles or thumbnails are unavailable. These changes enable subtitle selection/embedding and surface thumbnail availability to users.
This commit is contained in:
@@ -23,4 +23,8 @@ export interface VideoInfo {
|
||||
video_resolutions: string[];
|
||||
/** List of available audio format options */
|
||||
audio_resolutions: string[];
|
||||
/** List of manually available subtitle language codes (e.g., 'en', 'cs') */
|
||||
subtitle_languages: string[];
|
||||
/** True if any subtitles or auto-captions are available */
|
||||
has_subtitles: boolean;
|
||||
}
|
||||
|
||||
@@ -23,4 +23,8 @@ export interface VideoInfo {
|
||||
video_resolutions: string[];
|
||||
/** List of available audio format options */
|
||||
audio_resolutions: string[];
|
||||
/** List of manually available subtitle language codes (e.g., 'en', 'cs') */
|
||||
subtitle_languages: string[];
|
||||
/** True if any subtitles or auto-captions are available */
|
||||
has_subtitles: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user