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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user