mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(actions): qBit handle Ignore slow torrents
rule correctly when disabled (#1309)
* fix(qbittorrent): handle 'Ignore slow torrents' rule correctly when disabled * move IgnoreSlowTorrents bool check
This commit is contained in:
parent
6e12654f6a
commit
80c2530116
1 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ func (s *service) qbittorrentCheckRulesCanDownload(ctx context.Context, action *
|
|||
return []string{rejection}, nil
|
||||
}
|
||||
|
||||
if rules.IgnoreSlowTorrentsCondition == domain.IgnoreSlowTorrentsModeMaxReached {
|
||||
if rules.IgnoreSlowTorrents && rules.IgnoreSlowTorrentsCondition == domain.IgnoreSlowTorrentsModeMaxReached {
|
||||
// get transfer info
|
||||
info, err := qbt.GetTransferInfoCtx(ctx)
|
||||
if err != nil {
|
||||
|
@ -189,7 +189,7 @@ func (s *service) qbittorrentCheckRulesCanDownload(ctx context.Context, action *
|
|||
}
|
||||
|
||||
// if max active downloads is unlimited or not reached, lets check if ignore slow always should be checked
|
||||
if rules.IgnoreSlowTorrentsCondition == domain.IgnoreSlowTorrentsModeAlways {
|
||||
if rules.IgnoreSlowTorrents && rules.IgnoreSlowTorrentsCondition == domain.IgnoreSlowTorrentsModeAlways {
|
||||
// get transfer info
|
||||
info, err := qbt.GetTransferInfoCtx(ctx)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue