Skip to content

Commit

Permalink
fix(qbittorent): remove extra apiVersion validation (#6)
Browse files Browse the repository at this point in the history
* hotfix: remove `apiVersion` validation to support 5.0.x releases

* remove: extraneous deps
  • Loading branch information
brettpetch authored Dec 15, 2024
1 parent ae24068 commit 6dfa149
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/qbittorrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/autobrr/tqm/expression"
"github.com/autobrr/tqm/logger"
"github.com/autobrr/tqm/sliceutils"
"github.com/autobrr/tqm/stringutils"

qbit "github.com/autobrr/go-qbittorrent"
"github.com/dustin/go-humanize"
Expand Down Expand Up @@ -97,9 +96,10 @@ func (c *QBittorrent) Connect() error {
apiVersion, err := c.client.GetWebAPIVersion()
if err != nil {
return fmt.Errorf("get api version: %w", err)
} else if stringutils.Atof64(apiVersion[0:3], 0.0) < 2.2 {
return fmt.Errorf("unsupported webapi version: %v", apiVersion)
}
}
//else if stringutils.Atof64(apiVersion[0:3], 0.0) < 2.2 {
// return fmt.Errorf("unsupported webapi version: %v", apiVersion)
//}

c.log.Debugf("API Version: %v", apiVersion)
return nil
Expand Down

0 comments on commit 6dfa149

Please sign in to comment.