mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(download-clients): porla implement rules (#711)
* feat(downloadclients): Porla implement rules * feat(downloadclients): Porla add basic auth support * feat(porla): use new token for auth * feat(porla): update check can download rules
This commit is contained in:
parent
209e23de4f
commit
d100703784
9 changed files with 248 additions and 59 deletions
|
@ -18,3 +18,36 @@ type TorrentsAddReq struct {
|
|||
|
||||
type TorrentsAddRes struct {
|
||||
}
|
||||
|
||||
type TorrentsListReq struct {
|
||||
Filters *TorrentsListFilters `json:"filters"`
|
||||
}
|
||||
|
||||
type TorrentsListFilters struct {
|
||||
Query string `json:"query"`
|
||||
}
|
||||
|
||||
type TorrentsListRes struct {
|
||||
Page int `json:"page"`
|
||||
PageSize int `json:"page_size"`
|
||||
TorrentsTotal int `json:"torrents_total"`
|
||||
Torrents []Torrent `json:"torrents"`
|
||||
}
|
||||
|
||||
type Torrent struct {
|
||||
DownloadRate int `json:"download_rate"`
|
||||
UploadRate int `json:"upload_rate"`
|
||||
Flags int `json:"flags"`
|
||||
InfoHash []string `json:"info_hash"`
|
||||
ListPeers int `json:"list_peers"`
|
||||
ListSeeds int `json:"list_seeds"`
|
||||
Name string `json:"name"`
|
||||
NumPeers int `json:"num_peers"`
|
||||
NumSeeds int `json:"num_seeds"`
|
||||
Progress float64 `json:"progress"`
|
||||
QueuePosition int `json:"queue_position"`
|
||||
SavePath string `json:"save_path"`
|
||||
Size int `json:"size"`
|
||||
Total int `json:"total"`
|
||||
TotalDone int `json:"total_done"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue