fix: 修复3DM新闻的标题,添加了分类字段 (#3185)

This commit is contained in:
RicardoMing
2019-10-08 11:51:35 +08:00
committed by DIYgod
parent 90281ca4c5
commit 6cfa9ae60e
+7
View File
@@ -23,6 +23,12 @@ module.exports = async (ctx) => {
}
const title = $(item)
.find('.text')
.find('.bt')
.text();
const category = $(item)
.find('.text')
.find('.bq')
.find('a')
.text();
@@ -40,6 +46,7 @@ module.exports = async (ctx) => {
const single = {
title: title,
category: category,
description: description,
pubDate: time.toUTCString(),
link: itemUrl,