fix: dont error when youtube video doesnt have tags
This commit is contained in:
parent
93f359e684
commit
100d64a4d1
@ -192,7 +192,7 @@ async function processCreateYoutubeVideo(
|
||||
name: video.snippet.title,
|
||||
id: newId || video.snippet.title,
|
||||
content: video.snippet.description,
|
||||
tags: video.snippet.tags.slice(0, 5),
|
||||
tags: video.snippet?.tags?.slice(0, 5) || [],
|
||||
meta: {
|
||||
done: false,
|
||||
link: fetchUrl,
|
||||
|
Loading…
x
Reference in New Issue
Block a user