fix: reject low-confidence automatic metadata matches

This commit is contained in:
ShukeBta
2026-06-25 02:58:07 +08:00
parent 9021007027
commit 5eb0d4c8af
5 changed files with 138 additions and 8 deletions
+6 -5
View File
@@ -93,11 +93,12 @@ func (b *BangumiProvider) Search(ctx context.Context, query string) (*Match, err
title = r.Name
}
m := &Match{
BangumiID: r.ID,
Title: title,
Overview: r.Summary,
PosterURL: normalizeBangumiImageURL(r.Images.Large),
Rating: r.Rating.Score,
BangumiID: r.ID,
Title: title,
OriginalName: r.Name,
Overview: r.Summary,
PosterURL: normalizeBangumiImageURL(r.Images.Large),
Rating: r.Rating.Score,
}
if len(r.Air) >= 4 {
_, _ = fmt.Sscanf(r.Air[:4], "%d", &m.Year)