Implement the list endpoint for qbittorrent

This commit is contained in:
Alexander
2026-05-06 22:53:55 +02:00
parent 36416081c1
commit 6071bc7980
6 changed files with 288 additions and 9 deletions
+12
View File
@@ -8,7 +8,12 @@ const (
IndexerTypeJackett IndexerType = "jackett"
)
const (
TorrentClientQbittorrent TorrentClientType = "qbittorrent"
)
type IndexerType string
type TorrentClientType string
type Config struct {
App struct {
@@ -22,6 +27,13 @@ type Config struct {
Type IndexerType `yaml:"type"`
ApiKey string `yaml:"api_key"`
} `yaml:"indexer"`
Torrent struct {
ClientType TorrentClientType `yaml:"client_type"`
Url string `yaml:"url"`
Username string `yaml:"username"`
Password string `yaml:"password"`
} `yaml:"torrent"`
}
func (t *IndexerType) UnmarshalYAML(unmarshal func(any) error) error {