mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-06 05:16:38 +08:00
fix: correct organize media type classification
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user