Strengthen search breadth and modal fitting
build-push / docker (push) Successful in 4m14s

This commit is contained in:
AI Assistant
2026-03-17 13:10:53 +09:00
parent 2fe1bd8ffe
commit 5ca7aef3f1
10 changed files with 110 additions and 49 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--