fix: mp4ba 获取不到磁力链接的BUG;正文中添加下载链接与网盘链接 (#2766)

This commit is contained in:
wolfyu1991
2019-08-05 11:13:43 +08:00
committed by DIYgod
parent ddd7a871fd
commit a359c85c46

View File

@@ -97,12 +97,12 @@ async function buildRss($, paramType, ctx) {
} else { } else {
const pageData = (await got.get(pageUrl)).data; const pageData = (await got.get(pageUrl)).data;
const $page = cheerio.load(pageData); const $page = cheerio.load(pageData);
$magnet = $page('.content .article .box') const downloadAll = $page('#fadecon > .dow_con:nth-child(1)');
.find('.download') const downloadBd = $page('#fadecon > .dow_con:nth-child(4)');
.find('a[href^="magnet:?xt=urn:btih:"]'); const info_detail = $page('.content .article .box .info_con').find('.info_detail');
description = $page('.content .article .box') const ar_banner = $page('.content .article .box .info_con').find('.ar_banner');
.find('.info_con') $magnet = downloadAll.find('a[href^="magnet:?xt=urn:btih:"]');
.html(); description = info_detail.html() + ar_banner.html() + downloadAll.html() + downloadBd.html();
cache.set(key, description); cache.set(key, description);
} }
} }