Merge pull request #6688 from nczitzk/feature/bde4

fix: 哔嘀影视返回最新 BT / 磁力源
This commit is contained in:
NeverBehave 2021-01-12 22:23:14 -05:00 committed by GitHub
commit 77f4cc7a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ module.exports = async (ctx) => {
const torrents = content('#download-wrapper').nextAll('.list').eq(0);
item.description = content('.info0').html() + `<div><b>下载地址:</b>${downloadLinks}</div>` + `${torrents.html() ? `<div><b>种子列表:</b>${torrents.html()}</div>` : ''}`;
item.enclosure_url = torrents.html() ? torrents.find('a.header').eq(0).attr('href') : downloadResponse.data.pop().url;
item.enclosure_url = torrents.html() ? torrents.find('a.header').last().attr('href') : downloadResponse.data.pop().url;
item.enclosure_type = 'application/x-bittorrent';
return item;