* fix #1780

* close #1811

* close #1767
This commit is contained in:
Awater 2019-03-26 10:52:29 +08:00 committed by DIYgod
parent da7f35616e
commit e2810f6d4e
1 changed files with 3 additions and 0 deletions

View File

@ -37,7 +37,10 @@ module.exports = async (ctx) => {
const link = $(item).find('a:nth-of-type(2)');
const itemUrl = 'http://www.dytt8.net' + link.attr('href');
const other = await load(itemUrl, ctx);
return {
enclosure_url: String(other.match(/magnet:.*?(?=">)/)),
enclosure_type: 'application/x-bittorrent',
title: link.text(),
description: other,
pubDate: new Date(