Improved YouTube search query accuracy

Wrapped the game name in quotes in the YouTube search query to yield more accurate results for VR trailers
This commit is contained in:
jp64k
2026-01-02 16:09:45 +01:00
parent f80d5f841c
commit debb204719

View File

@@ -5206,7 +5206,7 @@ function onYouTubeIframeAPIReady() {
// Lightweight search
try
{
string query = WebUtility.UrlEncode(gameName + " VR trailer");
string query = WebUtility.UrlEncode($"\"{gameName}\" VR trailer");
string searchUrl = $"https://www.youtube.com/results?search_query={query}";
using (var http = new HttpClient())
{