Remove titles from the library with a confirmation (M10)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -164,3 +164,18 @@ func TestEpisodeFiles(t *testing.T) {
|
||||
t.Errorf("attrs = %+v", a)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDeleteSeries(t *testing.T) {
|
||||
c := newTestClient(t, func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != http.MethodDelete || r.URL.Path != "/api/v3/series/3" {
|
||||
t.Errorf("unexpected request %s %s", r.Method, r.URL)
|
||||
}
|
||||
q := r.URL.Query()
|
||||
if q.Get("deleteFiles") != "false" || q.Get("addImportListExclusion") != "true" {
|
||||
t.Errorf("query = %v", q)
|
||||
}
|
||||
})
|
||||
if err := c.DeleteSeries(context.Background(), 3, false, true); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user