From fcd6edb3047d7f8c8da42f6be355ad3300ccd566 Mon Sep 17 00:00:00 2001 From: Manas Khurana Date: Sun, 20 May 2018 00:23:07 +0530 Subject: [PATCH] Add files via upload --- index3.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index3.html b/index3.html index f18b8b9..1e40737 100644 --- a/index3.html +++ b/index3.html @@ -837,10 +837,10 @@ var isChart = 0; var notFound = 0; var firstload = 0; function queryName(query) { - var qType = 'search?part=snippet&q'; + var qType = 'search?part=snippet&type=channel&q'; if (rawInput.slice(0, 2).toUpperCase()==='UC' && rawInput.length===24) qType = 'channels?part=snippet&id=';//change query type to id if rawinput is id. var u = ''; - if (!query) u = 'https://www.googleapis.com/youtube/v3/'+qType+'=' + encodeURIComponent(rawInput) + '&fields=items/snippet&type=channel&maxResults=1&key='; + if (!query) u = 'https://www.googleapis.com/youtube/v3/'+qType+'=' + encodeURIComponent(rawInput) + '&fields=items/snippet&maxResults=1&key='; else u = query;//query is used only for suggests. try { ajx(u + getKey(), function (e) {