mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-12 16:26:36 +08:00
fix media workflows and download organization
This commit is contained in:
@@ -81,7 +81,9 @@ func (t *TMDbProvider) SearchMovieCandidates(ctx context.Context, query string,
|
||||
}
|
||||
out := make([]*Match, 0, len(p.Results))
|
||||
for _, r := range p.Results {
|
||||
out = append(out, t.movieSearchResultToMatch(r))
|
||||
match := t.movieSearchResultToMatch(r)
|
||||
match.SearchKeyword = query
|
||||
out = append(out, match)
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
@@ -154,7 +156,9 @@ func (t *TMDbProvider) SearchTVCandidates(ctx context.Context, query string, yea
|
||||
}
|
||||
out := make([]*Match, 0, len(p.Results))
|
||||
for _, r := range p.Results {
|
||||
out = append(out, t.tvSearchResultToMatch(r))
|
||||
match := t.tvSearchResultToMatch(r)
|
||||
match.SearchKeyword = query
|
||||
out = append(out, match)
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user