Only request published field from Invidious API

This commit is contained in:
Omar Roth 2019-08-31 16:44:46 -04:00
parent a229aee2cc
commit cfbf1f8995
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2

View file

@ -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;