fix(organize): repair classification and forced rescrape

This commit is contained in:
ShukeBta
2026-08-10 19:16:12 +08:00
parent 60d2cfe2f1
commit 5c6fe91742
16 changed files with 416 additions and 34 deletions
@@ -70,6 +70,16 @@ func newTestScraper(t *testing.T) (*ScraperService, *repository.Container, func(
"name": "Animation",
}},
})
case strings.HasPrefix(r.URL.Path, "/tv/999"):
_ = json.NewEncoder(w).Encode(map[string]any{
"id": 999,
"name": "错误旧匹配",
"first_air_date": "2020-01-01",
"origin_country": []string{"CN"},
"genres": []map[string]any{{
"name": "Drama",
}},
})
default:
http.NotFound(w, r)
}