mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +00:00
block下载记录支持
This commit is contained in:
1 parent
8298051c81
commit
7bb3e38b21
7 files changed
+140
-124
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user