From faf17d6e86bfc722c76309be630c31249ad41a14 Mon Sep 17 00:00:00 2001 From: Manas Khurana Date: Sat, 19 May 2018 23:07:38 +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 8739f3e..31d55cf 100644 --- a/index3.html +++ b/index3.html @@ -837,7 +837,7 @@ var isChart = 0; var notFound = 0; var firstload = 0; function queryName(query) { - var qType = 'q' + var qType = 'q'; if (rawInput.slice(0, 2).toUpperCase()==='UC' && rawInput.length===24) qType = 'id';//change query type to id if rawinput is id. var u = ''; if (!query) u = 'https://www.googleapis.com/youtube/v3/search?part=snippet&'+qType+'=' + encodeURIComponent(rawInput) + '&fields=items/snippet&type=channel&maxResults=1&key='; @@ -848,7 +848,7 @@ function queryName(query) { noConnection( 'undef e.items in queryName'); return; } - if (!query && e.pageInfo.totalResults < 1) {// if no result found and queryName not called by suggests (!query) + if (!query && !e.items[0].snippet.channelId.trim()) {// if no result found and queryName not called by suggests (!query) //, show not found and hide stuff changeText('username','Not Found!'); document.getElementById('actualCount').style.display = 'none';