Release Memby 0.2.64
This commit is contained in:
@@ -53,6 +53,17 @@ type Movie struct {
|
||||
MinimumAvailability string `json:"minimumAvailability,omitempty"`
|
||||
}
|
||||
|
||||
// SearchMovie asks Radarr to search exactly one tracked film. It does not delete or
|
||||
// unmonitor the existing file; Radarr retains it until its normal import policy wins.
|
||||
func (c *Client) SearchMovie(ctx context.Context, movieID int) error {
|
||||
if movieID <= 0 {
|
||||
return fmt.Errorf("radarr: invalid movie id")
|
||||
}
|
||||
return c.post(ctx, "/api/v3/command", map[string]any{
|
||||
"name": "MoviesSearch", "movieIds": []int{movieID},
|
||||
}, &struct{}{})
|
||||
}
|
||||
|
||||
type RootFolder struct {
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user