block下载记录支持

This commit is contained in:
liwei committed 2020-02-26 18:53:39 +08:00
1 parent 8298051c81
commit 7bb3e38b21
7 files changed
+140 -124

No files matched your search

+3 -3
View File
@@ -46,12 +46,12 @@ func (client *Client) AddTorrent(rawurl string) error {
}
torrent := torrent.Torrent{
client: client,
// client: client,
MetaInfo: metaInfo,
}
client.torrents = append(client.torrents, torrent)
// client.torrents = append(client.torrents, torrent)
torrent.Download()
torrent.Download("")
return nil
}