Implement the list endpoint for qbittorrent
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user