From 974a38cdf3e644cec18518ca8781c7a6c44914b1 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Sun, 2 Aug 2026 16:59:02 +0700 Subject: [PATCH] fix(youtube): request video content details --- lib/video/video-platforms.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.");