feat(youtube): output thumbnail image

This commit is contained in:
DIYgod 2024-06-05 19:13:14 +08:00
parent c64e6e34cf
commit 93f4ed0fc3
No known key found for this signature in database
6 changed files with 6 additions and 0 deletions

View File

@ -69,6 +69,7 @@ async function handler(ctx) {
pubDate: parseDate(snippet.publishedAt),
link: `https://www.youtube.com/watch?v=${videoId}`,
author: snippet.videoOwnerChannelTitle,
image: img.url,
};
}),
};

View File

@ -71,6 +71,7 @@ async function handler(ctx) {
pubDate: parseDate(snippet.publishedAt),
link: `https://www.youtube.com/watch?v=${videoId}`,
author: snippet.videoOwnerChannelTitle,
image: img.url,
};
}),
};

View File

@ -68,6 +68,7 @@ async function handler(ctx) {
pubDate: parseDate(snippet.publishedAt),
guid: liveVideoId,
link: `https://www.youtube.com/watch?v=${liveVideoId}`,
image: img.url,
};
}),
allowEmpty: true,

View File

@ -53,6 +53,7 @@ async function handler(ctx) {
pubDate: parseDate(snippet.publishedAt),
link: `https://www.youtube.com/watch?v=${videoId}`,
author: snippet.videoOwnerChannelTitle,
image: img.url,
};
}),
};

View File

@ -77,6 +77,7 @@ async function handler(ctx) {
pubDate: parseDate(snippet.publishedAt),
link: `https://www.youtube.com/watch?v=${videoId}`,
author: snippet.videoOwnerChannelTitle,
image: img.url,
};
});

View File

@ -73,6 +73,7 @@ async function handler(ctx) {
pubDate: parseDate(snippet.publishedAt),
link: `https://www.youtube.com/watch?v=${videoId}`,
author: snippet.videoOwnerChannelTitle,
image: img.url,
};
}),
};