From cfbf1f899553060674eec4e4f8b02184552ef3ab Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 31 Aug 2019 16:44:46 -0400 Subject: [PATCH] Only request published field from Invidious API --- content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content.js b/content.js index f8809322..d947390b 100644 --- a/content.js +++ b/content.js @@ -376,7 +376,7 @@ function sponsorsLookup(id) { //check if this video was uploaded recently //use the invidious api to get the time published - sendRequestToCustomServer('GET', "https://invidio.us/api/v1/videos/" + id, function(xmlhttp, error) { + sendRequestToCustomServer('GET', "https://invidio.us/api/v1/videos/" + id + '?fields=published', function(xmlhttp, error) { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { let unixTimePublished = JSON.parse(xmlhttp.responseText).published;