mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 09:35:42 +00:00
Update HeroSection.tsx 3
This commit is contained in:
parent
02e9aef9f2
commit
274d2f7d0a
1 changed files with 2 additions and 1 deletions
|
|
@ -1155,8 +1155,9 @@ const HeroSection: React.FC<HeroSectionProps> = memo(({
|
|||
logger.info('HeroSection', `Fetching TMDB videos for ${metadata.name} (tmdbId: ${resolvedTmdbId})`);
|
||||
|
||||
// Fetch video list from TMDB to get the YouTube video ID
|
||||
const tmdbApiKey = await TMDBService.getInstance().getApiKey();
|
||||
const videosRes = await fetch(
|
||||
`https://api.themoviedb.org/3/${contentType}/${resolvedTmdbId}/videos?api_key=d131017ccc6e5462a81c9304d21476de&language=en-US`
|
||||
`https://api.themoviedb.org/3/${contentType}/${resolvedTmdbId}/videos?api_key=${tmdbApiKey}`
|
||||
);
|
||||
|
||||
if (!alive) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue