mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 06:15:39 -04:00
Add watch trailer button with cinematic YouTube player dialog
Fetch trailer video keys from TMDB videos API during title import/refresh, store in DB, and display a "Trailer" button on title pages that opens a media-chrome Sutro-themed YouTube player in a fullwidth dialog. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -123,6 +123,24 @@ export interface TmdbFindResult {
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface TmdbVideo {
|
||||
id: string;
|
||||
key: string;
|
||||
name: string;
|
||||
site: string;
|
||||
type: string;
|
||||
official: boolean;
|
||||
published_at: string;
|
||||
size: number;
|
||||
iso_639_1: string;
|
||||
iso_3166_1: string;
|
||||
}
|
||||
|
||||
export interface TmdbVideosResponse {
|
||||
id: number;
|
||||
results: TmdbVideo[];
|
||||
}
|
||||
|
||||
export interface TmdbGenre {
|
||||
id: number;
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user