feat(youtube): output thumbnail image
This commit is contained in:
parent
c64e6e34cf
commit
93f4ed0fc3
|
|
@ -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,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue