From 0d69e20751de4da8e78d1e1c14cea2c5e8f686e5 Mon Sep 17 00:00:00 2001 From: ri1ken Date: Fri, 30 Sep 2022 06:13:55 +0900 Subject: [PATCH] fix(route): yoasobi-music redefine guid (#10958) same post being consided as new one because of the random generated emoji in `guid`. --- lib/v2/yoasobi-music/info.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/v2/yoasobi-music/info.js b/lib/v2/yoasobi-music/info.js index 668f57626..d1a01ac86 100644 --- a/lib/v2/yoasobi-music/info.js +++ b/lib/v2/yoasobi-music/info.js @@ -30,6 +30,7 @@ module.exports = async (ctx) => { return { id: isBio ? null : item.id, + guid: isBio ? `bio:${item.url}` : `news:${item.title}${item.date}`, title: isBio ? `${randomEmoji} ${item.url}` : item.title, category: item.category ?? 'Achievement', date: isBio ? item.url : item.date, @@ -58,7 +59,7 @@ module.exports = async (ctx) => { // the article publish time pubDate: parseDate(i.date), // guid - guid: i.title + i.date, + guid: i.guid, // the article link link: i.id ? `${officialUrl}/${i.id}` : officialUrl, category: i.category,