mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: 国家地理-每日一图 接口更改 (#3504)
This commit is contained in:
@@ -11,10 +11,10 @@ module.exports = async (ctx) => {
|
||||
|
||||
const out = items.slice(0, 10).map((item) => {
|
||||
const info = {
|
||||
title: item.altText,
|
||||
author: item.credit,
|
||||
link: item['full-path-url'],
|
||||
description: `<img src="${item.sizes[1024]}">` + item.caption,
|
||||
title: item.image.title,
|
||||
author: item.image.credit.replace('Photograph by ', ''),
|
||||
link: item.pageUrl,
|
||||
description: `<img src="${item.image.uri}">` + item.image.caption,
|
||||
};
|
||||
return info;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user