0.2.58 - Requests module

This commit is contained in:
ponzischeme89
2026-08-12 14:13:19 +12:00
parent 64f19aeef2
commit 613f203cf9
27 changed files with 3026 additions and 23 deletions
+13
View File
@@ -221,3 +221,16 @@ func (c *Client) do(req *http.Request, out any) error {
}
return nil
}
// Movies returns Radarr's whole catalogue.
//
// The request page needs the current state of every title a viewer has ever asked for, and
// asking Radarr per title would be one round trip per card. One catalogue read answers them
// all; the caller caches it.
func (c *Client) Movies(ctx context.Context) ([]Movie, error) {
var movies []Movie
if err := c.get(ctx, "/api/v3/movie", &movies); err != nil {
return nil, err
}
return movies, nil
}