fixing that
This commit is contained in:
parent
b558982050
commit
1bbd702a9d
|
|
@ -66,7 +66,7 @@ async function createDatabaseVideo(id: string, videoUrl: string) {
|
||||||
uuid: crypto.randomUUID(),
|
uuid: crypto.randomUUID(),
|
||||||
id: id,
|
id: id,
|
||||||
title: data.videoDetails.title,
|
title: data.videoDetails.title,
|
||||||
description: (data.videoDetails.short_description).replaceAll('\n', '<br>'),
|
description: (data.microformat.playerMicroformatRenderer.description.simpleText).replaceAll('\n', '<br>'),
|
||||||
thumbnail: thumbnailUrl,
|
thumbnail: thumbnailUrl,
|
||||||
source: videoUrl,
|
source: videoUrl,
|
||||||
published: data.microformat.playerMicroformatRenderer.publishDate.slice(0, 10),
|
published: data.microformat.playerMicroformatRenderer.publishDate.slice(0, 10),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue