aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOmar Roth <[email protected]>2019-08-31 16:44:46 -0400
committerOmar Roth <[email protected]>2019-08-31 16:44:46 -0400
commitcfbf1f899553060674eec4e4f8b02184552ef3ab (patch)
tree000019fccebdbd2e8ece706d12f0ce2c23c33c36
parenta229aee2ccaeef395bb275cad678ef70a8d2e9e2 (diff)
downloadSponsorBlock-cfbf1f899553060674eec4e4f8b02184552ef3ab.tar.gz
SponsorBlock-cfbf1f899553060674eec4e4f8b02184552ef3ab.zip
Only request published field from Invidious API
-rw-r--r--content.js2
1 files changed, 1 insertions, 1 deletions
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;