mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 07:12:51 +08:00
fix: mp4ba 获取不到磁力链接的BUG;正文中添加下载链接与网盘链接 (#2766)
This commit is contained in:
@@ -97,12 +97,12 @@ async function buildRss($, paramType, ctx) {
|
||||
} else {
|
||||
const pageData = (await got.get(pageUrl)).data;
|
||||
const $page = cheerio.load(pageData);
|
||||
$magnet = $page('.content .article .box')
|
||||
.find('.download')
|
||||
.find('a[href^="magnet:?xt=urn:btih:"]');
|
||||
description = $page('.content .article .box')
|
||||
.find('.info_con')
|
||||
.html();
|
||||
const downloadAll = $page('#fadecon > .dow_con:nth-child(1)');
|
||||
const downloadBd = $page('#fadecon > .dow_con:nth-child(4)');
|
||||
const info_detail = $page('.content .article .box .info_con').find('.info_detail');
|
||||
const ar_banner = $page('.content .article .box .info_con').find('.ar_banner');
|
||||
$magnet = downloadAll.find('a[href^="magnet:?xt=urn:btih:"]');
|
||||
description = info_detail.html() + ar_banner.html() + downloadAll.html() + downloadBd.html();
|
||||
cache.set(key, description);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user