From c5b3b589a9726b329b76ef7e8445fd9d02fdce7c Mon Sep 17 00:00:00 2001 From: localhost Date: Fri, 21 Mar 2025 15:04:45 +0100 Subject: [PATCH] new name for video id --- src/router/video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/video.ts b/src/router/video.ts index ccd9096..8ac847a 100644 --- a/src/router/video.ts +++ b/src/router/video.ts @@ -51,7 +51,7 @@ app.get('/channel/:id', async ({ params: { id }, error }) => { .execute() const processedVideos: processedVideo[] = videos.map((video: any) => ({ // it would be impossible to set types for youtube output... they change it every day. - id: video.id, + id: video.video_id, title: video.title.text, thumbnail: video.thumbnails[0].url, published: (video.published.text.endsWith('ago') ? convertRelativeToDate(video.published.text) : new Date(video.published.text)).toISOString().slice(0, 10)