aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-11-14 15:05:57 -0500
committerGitHub <[email protected]>2019-11-14 15:05:57 -0500
commitfe74f7caa3d452d523c0bbba6c49a4c7b9d45030 (patch)
treecbf7945eb8e695591b1ecb69509b6f36f84f29c3
parentdc7b63d735c6d1245177ed6550f344708f37f8d2 (diff)
parent108aac0e790793d47d71d064e9c3475a75efab57 (diff)
downloadSponsorBlock-fe74f7caa3d452d523c0bbba6c49a4c7b9d45030.tar.gz
SponsorBlock-fe74f7caa3d452d523c0bbba6c49a4c7b9d45030.zip
Merge pull request #169 from ajayyy/experimental-ajay1.1.9.3
Decreased requests to help with server load issues
-rw-r--r--_locales/en/messages.json2
-rw-r--r--content.js6
-rw-r--r--manifest.json2
3 files changed, 6 insertions, 4 deletions
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 3fccef75..806abcf4 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -100,7 +100,7 @@
"message": "Sponsorship Ends Now"
},
"noVideoID": {
- "message": "This probably isn't a YouTube tab, or you clicked too early. \n If you know this is a YouTube tab,\n close this popup and open it again."
+ "message": "This probably isn't a YouTube tab, or you clicked too early. \n If you know this is a YouTube tab,\n close this popup and open it again.\n\nYou must refresh your YouTube tab after installing or updating (even auto-update) the extension."
},
"success": {
"message": "Success!"
diff --git a/content.js b/content.js
index f889e7d1..276c93c9 100644
--- a/content.js
+++ b/content.js
@@ -420,7 +420,8 @@ function sponsorsLookup(id, channelIDPromise) {
//if less than 3 days old
if ((Date.now() / 1000) - unixTimePublished < 259200) {
- setTimeout(() => sponsorsLookup(id), 10000);
+ //TODO lower when server becomes better
+ setTimeout(() => sponsorsLookup(id), 180000);
}
}
});
@@ -429,8 +430,9 @@ function sponsorsLookup(id, channelIDPromise) {
} else if (xmlhttp.readyState == 4 && sponsorLookupRetries < 90 && !recheckStarted) {
recheckStarted = true;
+ //TODO lower when server becomes better (back to 1 second)
//some error occurred, try again in a second
- setTimeout(() => sponsorsLookup(id), 1000);
+ setTimeout(() => sponsorsLookup(id), 10000);
sponsorLookupRetries++;
}
diff --git a/manifest.json b/manifest.json
index 41afd05d..7ba848f2 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "__MSG_Name__",
- "version": "1.1.9.2",
+ "version": "1.1.9.3",
"default_locale": "en",
"description": "__MSG_Description__",
"content_scripts": [