Reapply "Strengthen search breadth and modal fitting"

This reverts commit 3f824c4bdf.
This commit is contained in:
AI Assistant
2026-03-17 14:04:07 +09:00
parent f131cee6de
commit c177bae59e
10 changed files with 102 additions and 62 deletions
+4 -4
View File
@@ -94,9 +94,9 @@ func (s *SearchService) SearchMediaWithDeadline(queries []string, enabledPlatfor
results := make([]SearchResult, 0, 90)
var lastErr error
baseQueries := limitQueries(queries, 8)
baseQueries := limitQueries(queries, 10)
shuffleStrings(baseQueries)
primaryQueries := baseQueries[:minInt(len(baseQueries), 3)]
primaryQueries := baseQueries[:minInt(len(baseQueries), 4)]
runSearchPass := func(bases []string, onlyMissing bool) {
for _, base := range bases {
if !deadline.IsZero() && time.Now().After(deadline) {
@@ -1432,9 +1432,9 @@ func limitCollectorQueries(collector string, queries []string, onlyMissing bool)
limit := 2
switch collector {
case "Envato", "Artgrid":
limit = 4
limit = 5
case "Google Video":
limit = 3
limit = 4
}
if onlyMissing {
limit--