diff options
author | Omar Roth <[email protected]> | 2019-08-31 16:44:46 -0400 |
---|---|---|
committer | Omar Roth <[email protected]> | 2019-08-31 16:44:46 -0400 |
commit | cfbf1f899553060674eec4e4f8b02184552ef3ab (patch) | |
tree | 000019fccebdbd2e8ece706d12f0ce2c23c33c36 | |
parent | a229aee2ccaeef395bb275cad678ef70a8d2e9e2 (diff) | |
download | SponsorBlock-cfbf1f899553060674eec4e4f8b02184552ef3ab.tar.gz SponsorBlock-cfbf1f899553060674eec4e4f8b02184552ef3ab.zip |
Only request published field from Invidious API
-rw-r--r-- | content.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |