fix: correct organize media type classification

This commit is contained in:
ShukeBta
2026-06-25 11:50:02 +08:00
parent 16c3ed239a
commit e16fecb3ec
15 changed files with 308 additions and 16 deletions
+5
View File
@@ -120,8 +120,13 @@ func (d *DoubanProvider) SearchMatch(ctx context.Context, query string) (*Match,
if err != nil || got == nil {
return nil, err
}
mediaType := ""
if strings.TrimSpace(got.Type) != "" {
mediaType = normalizeMediaType(got.Type, got.Title, "")
}
match := &Match{
DoubanID: got.DoubanID,
MediaType: mediaType,
Title: got.Title,
PosterURL: got.Img,
Rating: got.Rating,