feat(asianfanfics): 添加文章描述信息 (#18686)
* feat(asianfanfics): 添加文章描述信息 * refactor(asianfanfics): 移除描述中的作者信息
This commit is contained in:
@@ -72,12 +72,14 @@ async function handler(ctx) {
|
||||
const link = 'https://www.asianfanfics.com' + $element.find('.excerpt__title a').attr('href');
|
||||
const author = $element.find('.excerpt__meta__name a').text().trim();
|
||||
const pubDate = parseDate($element.find('time').attr('datetime') || '');
|
||||
const description = $element.find('.excerpt__text').html();
|
||||
|
||||
return {
|
||||
title,
|
||||
link,
|
||||
author,
|
||||
pubDate,
|
||||
description,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -51,12 +51,14 @@ async function handler(ctx) {
|
||||
const link = 'https://www.asianfanfics.com' + $element.find('.excerpt__title a').attr('href');
|
||||
const author = $element.find('.excerpt__meta__name a').text().trim();
|
||||
const pubDate = parseDate($element.find('time').attr('datetime') || '');
|
||||
const description = $element.find('.excerpt__text').html();
|
||||
|
||||
return {
|
||||
title,
|
||||
link,
|
||||
author,
|
||||
pubDate,
|
||||
description,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user