rss: zhihu daily format
This commit is contained in:
@@ -38,8 +38,8 @@ module.exports = async (ctx) => {
|
||||
Referer: url,
|
||||
},
|
||||
});
|
||||
item.description = storyDetail.data.body;
|
||||
ctx.cache.set(key, storyDetail.data.body, 24 * 60 * 60);
|
||||
item.description = storyDetail.data.body.replace(/<div class="meta">([\s\S]*?)<\/div>/g, '<strong>$1</strong>');
|
||||
ctx.cache.set(key, item.description, 24 * 60 * 60);
|
||||
}
|
||||
|
||||
resultItem.push(item);
|
||||
|
||||
Reference in New Issue
Block a user