mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
fix(route): 中国载人航天飞行任务图片URL (#10390)
This commit is contained in:
@@ -23,10 +23,10 @@ module.exports = async (ctx) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
title: item.find('.title').text().split(':').pop().trim(),
|
title: item.find('.title').text().split(':').pop().trim(),
|
||||||
link: new URL(item.attr('href'), currentUrl),
|
link: new URL(item.attr('href'), currentUrl).href,
|
||||||
pubDate: timezone(parseDate(item.find('.infoR').first().text().trim(), 'YYYY年M月D日H时m分'), +8),
|
pubDate: timezone(parseDate(item.find('.infoR').first().text().trim(), 'YYYY年M月D日H时m分'), +8),
|
||||||
description: art(path.join(__dirname, 'templates/description.art'), {
|
description: art(path.join(__dirname, 'templates/description.art'), {
|
||||||
image: item.find('img').attr('src'),
|
image: new URL(item.find('img').attr('src'), currentUrl).href,
|
||||||
description: item.find('.info').html(),
|
description: item.find('.info').html(),
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user