fix: oschina (#5663)

This commit is contained in:
Cloud
2020-09-14 16:55:27 +01:00
committed by GitHub
parent 3532000fbd
commit 2ed61206a7
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ module.exports = async (ctx) => {
});
const content = cheerio.load(detail.data);
content('.ad-wrap').remove();
item.description = content('#articleContent').html();
item.author = content('a.__user').find('span').text();
item.description = content('.article-detail').html();
item.author = content('.article-box__meta .item').first().text();
ctx.cache.set(key, item.description);
}
}
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = async (ctx) => {
});
const content = cheerio.load(detail.data);
content('#articleContent .ad-wrap').remove();
item.description = content('#articleContent').html();
item.description = content('.article-detail').html();
ctx.cache.set(key, item.description);
}
return Promise.resolve(item);
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = async (ctx) => {
});
const content = cheerio.load(detail.data);
content('.ad-wrap').remove();
item.description = content('#articleContent').html();
item.description = content('.article-detail').html();
ctx.cache.set(key, item.description);
}
return Promise.resolve(item);