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:
2026-05-11 00:53:24 +02:00
parent f8150eeda7
commit e1df55df0e
4 changed files with 105 additions and 23 deletions

View File

@@ -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;
}

View File

@@ -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;
}