diff --git a/lib/video/video-platforms.ts b/lib/video/video-platforms.ts index 8d50a26..414e954 100644 --- a/lib/video/video-platforms.ts +++ b/lib/video/video-platforms.ts @@ -52,7 +52,7 @@ export async function getLatestYoutubeVideos(): Promise { channelData.items?.[0]?.contentDetails?.relatedPlaylists?.uploads; if (!playlistId) return []; const response = await fetch( - `https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=${encodeURIComponent(playlistId)}&maxResults=10&key=${encodeURIComponent(apiKey)}`, + `https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&playlistId=${encodeURIComponent(playlistId)}&maxResults=10&key=${encodeURIComponent(apiKey)}`, { cache: "no-store" }, ); if (!response.ok) throw new Error("YouTube video list failed.");