fix pixiv datetime (#1056)
* add author label in other 2 mode * use real publish date * remove ambiguous date string
This commit is contained in:
parent
0de84a1fe2
commit
36c124f26a
|
|
@ -29,7 +29,9 @@ module.exports = async (ctx) => {
|
|||
}
|
||||
return {
|
||||
title: `${illust.title}`,
|
||||
description: `<p>画师:${illust.user.name} - 上传于:${new Date(illust.create_date).toLocaleString('zh-cn')} - 阅览数:${illust.total_view} - 收藏数:${illust.total_bookmarks}</p>${images.join('')}`,
|
||||
author: illust.user.name,
|
||||
pubDate: new Date(illust.create_date).toUTCString(),
|
||||
description: `<p>画师:${illust.user.name} - 阅览数:${illust.total_view} - 收藏数:${illust.total_bookmarks}</p>${images.join('')}`,
|
||||
link: `https://www.pixiv.net/member_illust.php?mode=medium&illust_id=${illust.id}`,
|
||||
};
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ module.exports = async (ctx) => {
|
|||
}
|
||||
return {
|
||||
title: `#${index + 1} ${illust.title}`,
|
||||
description: `<p>画师:${illust.user.name} - 上传于:${new Date(illust.create_date).toLocaleString('zh-cn')} - 阅览数:${illust.total_view} - 收藏数:${illust.total_bookmarks}</p><br>${images.join('')}`,
|
||||
pubDate: new Date(illust.create_date).toUTCString(),
|
||||
description: `<p>画师:${illust.user.name} - 阅览数:${illust.total_view} - 收藏数:${illust.total_bookmarks}</p><br>${images.join('')}`,
|
||||
link: `https://www.pixiv.net/member_illust.php?mode=medium&illust_id=${illust.id}`,
|
||||
author: `${illust.user.name}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ module.exports = async (ctx) => {
|
|||
}
|
||||
return {
|
||||
title: illust.title,
|
||||
description: `<p>画师:${username} - 上传于:${new Date(illust.create_date).toLocaleString('zh-cn')} - 阅览数:${illust.total_view} - 收藏数:${illust.total_bookmarks}</p>${images.join('')}`,
|
||||
author: username,
|
||||
pubDate: new Date(illust.create_date).toUTCString(),
|
||||
description: `<p>画师:${username} - 阅览数:${illust.total_view} - 收藏数:${illust.total_bookmarks}</p>${images.join('')}`,
|
||||
link: `https://www.pixiv.net/member_illust.php?mode=medium&illust_id=${illust.id}`,
|
||||
};
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in New Issue