mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00

* feat(lists): integrate Omegabrr * feat(lists): add missing lists index * feat(lists): add db repo * feat(lists): add db migrations * feat(lists): labels * feat(lists): url lists and more arrs * fix(lists): db migrations client_id wrong type * fix(lists): db fields * feat(lists): create list form wip * feat(lists): show in list and create * feat(lists): update and delete * feat(lists): trigger via webhook * feat(lists): add webhook handler * fix(arr): encode json to pointer * feat(lists): rename endpoint to lists * feat(lists): fetch tags from arr * feat(lists): process plaintext lists * feat(lists): add background refresh job * run every 6th hour with a random start delay between 1-35 seconds * feat(lists): refresh on save and improve logging * feat(lists): cast arr client to pointer * feat(lists): improve error handling * feat(lists): reset shows field with match release * feat(lists): filter opts all lists * feat(lists): trigger on update if enabled * feat(lists): update option for lists * feat(lists): show connected filters in list * feat(lists): missing listSvc dep * feat(lists): cleanup * feat(lists): typo arr list * feat(lists): radarr include original * feat(lists): rename ExcludeAlternateTitle to IncludeAlternateTitle * fix(lists): arr client type conversion to pointer * fix(actions): only log panic recover if err not nil * feat(lists): show spinner on save * feat(lists): show icon in filters list * feat(lists): change icon color in filters list * feat(lists): delete relations on filter delete
57 lines
1.5 KiB
Go
57 lines
1.5 KiB
Go
package arr
|
|
|
|
type Tag struct {
|
|
ID int
|
|
Label string
|
|
}
|
|
|
|
type Link struct {
|
|
URL string `json:"url"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Image struct {
|
|
CoverType string `json:"coverType"`
|
|
URL string `json:"url"`
|
|
RemoteURL string `json:"remoteUrl,omitempty"`
|
|
Extension string `json:"extension,omitempty"`
|
|
}
|
|
|
|
type Ratings struct {
|
|
Votes int64 `json:"votes"`
|
|
Value float64 `json:"value"`
|
|
Popularity float64 `json:"popularity,omitempty"`
|
|
}
|
|
|
|
type Value struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// BaseQuality is a base quality profile.
|
|
type BaseQuality struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Source string `json:"source,omitempty"`
|
|
Resolution int `json:"resolution,omitempty"`
|
|
Modifier string `json:"modifier,omitempty"`
|
|
}
|
|
|
|
// Quality is a download quality profile attached to a movie, book, track or series.
|
|
// It may contain 1 or more profiles.
|
|
// Sonarr nor Readarr use Name or ID in this struct.
|
|
type Quality struct {
|
|
Name string `json:"name,omitempty"`
|
|
ID int `json:"id,omitempty"`
|
|
Quality *BaseQuality `json:"quality,omitempty"`
|
|
Items []*Quality `json:"items,omitempty"`
|
|
Allowed bool `json:"allowed"`
|
|
Revision *QualityRevision `json:"revision,omitempty"` // Not sure which app had this....
|
|
}
|
|
|
|
// QualityRevision is probably used in Sonarr.
|
|
type QualityRevision struct {
|
|
Version int64 `json:"version"`
|
|
Real int64 `json:"real"`
|
|
IsRepack bool `json:"isRepack,omitempty"`
|
|
}
|