mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-14 00:56:37 +08:00
fix: add smart download classification
This commit is contained in:
@@ -31,8 +31,10 @@ type QBitAdapter struct {
|
||||
// NewQBitAdapter 创建新的 qBittorrent 适配器。
|
||||
func NewQBitAdapter() *QBitAdapter {
|
||||
jar, _ := cookiejar.New(nil)
|
||||
client := NewInternalHTTPClient(20 * time.Second)
|
||||
client.Jar = jar
|
||||
return &QBitAdapter{
|
||||
client: &http.Client{Jar: jar, Timeout: 20 * time.Second},
|
||||
client: client,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user