mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(downloadclient): set downloadClientId for arr clients (#1081)
feat(downloadclient): arrs set downloadClientId
This commit is contained in:
parent
1bfbe38335
commit
0d3e10f094
22 changed files with 154 additions and 66 deletions
|
@ -64,6 +64,7 @@ func New(config Config) Client {
|
|||
|
||||
type Release struct {
|
||||
Title string `json:"title"`
|
||||
InfoUrl string `json:"infoUrl,omitempty"`
|
||||
DownloadUrl string `json:"downloadUrl,omitempty"`
|
||||
MagnetUrl string `json:"magnetUrl,omitempty"`
|
||||
Size int64 `json:"size"`
|
||||
|
@ -71,6 +72,7 @@ type Release struct {
|
|||
DownloadProtocol string `json:"downloadProtocol"`
|
||||
Protocol string `json:"protocol"`
|
||||
PublishDate string `json:"publishDate"`
|
||||
DownloadClientId int `json:"downloadClientId,omitempty"`
|
||||
}
|
||||
|
||||
type PushResponse struct {
|
||||
|
@ -89,7 +91,7 @@ type BadRequestResponse struct {
|
|||
}
|
||||
|
||||
func (r *BadRequestResponse) String() string {
|
||||
return fmt.Sprintf("[%v: %v] %v: %v - got value: %v", r.Severity, r.ErrorCode, r.PropertyName, r.ErrorMessage, r.AttemptedValue)
|
||||
return fmt.Sprintf("[%s: %s] %s: %s - got value: %s", r.Severity, r.ErrorCode, r.PropertyName, r.ErrorMessage, r.AttemptedValue)
|
||||
}
|
||||
|
||||
type SystemStatusResponse struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue