feat: 优化片源网 title 展示 (#3541)

This commit is contained in:
codeeer 2019-12-08 02:39:09 +08:00 committed by DIYgod
parent 13e6ef366c
commit 41daa4c2bc
1 changed files with 4 additions and 2 deletions

View File

@ -37,9 +37,11 @@ module.exports = async (ctx) => {
.find('td:nth-child(2)')
.text();
const description_simple = description.substr(0, description.indexOf('主演')).replace(text, '');
items.push({
title: `[${size}] ${text}`,
description: description,
title: `[${size}] ${description_simple}`,
description: `${description}`,
link: link_base + link,
});
});