new name for video id
This commit is contained in:
parent
c44d187120
commit
c5b3b589a9
|
@ -51,7 +51,7 @@ app.get('/channel/:id', async ({ params: { id }, error }) => {
|
||||||
.execute()
|
.execute()
|
||||||
|
|
||||||
const processedVideos: processedVideo[] = videos.map((video: any) => ({ // it would be impossible to set types for youtube output... they change it every day.
|
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,
|
title: video.title.text,
|
||||||
thumbnail: video.thumbnails[0].url,
|
thumbnail: video.thumbnails[0].url,
|
||||||
published: (video.published.text.endsWith('ago') ? convertRelativeToDate(video.published.text) : new Date(video.published.text)).toISOString().slice(0, 10)
|
published: (video.published.text.endsWith('ago') ? convertRelativeToDate(video.published.text) : new Date(video.published.text)).toISOString().slice(0, 10)
|
||||||
|
|
Loading…
Reference in New Issue