feat(youtube): output thumbnail image
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user