Improve translated search flow and modal layout
build-push / docker (push) Successful in 4m19s

This commit is contained in:
AI Assistant
2026-03-13 11:57:58 +09:00
parent 1fc06fb785
commit 6852e07607
4 changed files with 186 additions and 70 deletions
+6 -4
View File
@@ -348,7 +348,9 @@ func rankSearchResults(query string, results []services.SearchResult) []services
}
negativeTerms := []string{
"shocking", "amazing", "crazy", "must watch", "reaction", "gossip", "celebrity",
"thumbnail", "meme", "prank", "drama", "breaking", "viral",
"thumbnail", "meme", "prank", "drama", "breaking", "viral", "tutorial",
"how to", "review", "walkthrough", "course", "lesson", "podcast", "interview",
"premiere pro", "after effects", "explained", "breakdown", "vlog",
}
type scoredResult struct {
item services.SearchResult
@@ -379,11 +381,11 @@ func rankSearchResults(query string, results []services.SearchResult) []services
}
switch result.Source {
case "Google Video":
score += 3
score += 2
case "Envato":
score += 4
score += 5
case "Artgrid":
score += 4
score += 5
}
scored = append(scored, scoredResult{item: result, score: score})
}