feat(qbittorrent): add offline download seed time (#3842 close #3588)

This commit is contained in:
Brian
2023-03-14 12:13:23 +08:00
committed by GitHub
parent 4741a75c92
commit f3db23a41e
5 changed files with 35 additions and 20 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/alist-org/alist/v3/internal/conf"
"github.com/alist-org/alist/v3/internal/errs"
"github.com/alist-org/alist/v3/internal/op"
"github.com/alist-org/alist/v3/internal/setting"
"github.com/alist-org/alist/v3/pkg/task"
"github.com/google/uuid"
"github.com/pkg/errors"
@ -50,6 +51,7 @@ func AddURL(ctx context.Context, url string, dstDirPath string) error {
tsk: tsk,
tempDir: tempDir,
dstDirPath: dstDirPath,
seedtime: setting.GetInt(conf.QbittorrentSeedtime, 0),
}
return m.Loop()
},