fix: gopeed cli BT download (#258)

This commit is contained in:
Levi authored and GitHub committed 2023-10-31 10:16:28 +08:00
1 parent 74b08b3631
commit 4690107e32
3 files changed
+27 -8

No files matched your search

+4 -5
View File
@@ -848,12 +848,11 @@ func (b *boot) Listener(listener Listener) *boot {
}
func (b *boot) Create(opts *base.Options) (string, error) {
rr, err := b.Resolve()
if err != nil {
return "", err
}
defaultDownloader.Listener(b.listener)
return defaultDownloader.Create(rr.ID, opts)
return defaultDownloader.CreateDirect(&base.Request{
URL: b.url,
Extra: b.extra,
}, opts)
}
func Boot() *boot {