mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Log returned data when video info failed to load
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "__MSG_fullName__",
|
"name": "__MSG_fullName__",
|
||||||
"short_name": "SponsorBlock",
|
"short_name": "SponsorBlock",
|
||||||
"version": "2.0.12",
|
"version": "2.0.12.1",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_Description__",
|
"description": "__MSG_Description__",
|
||||||
"content_scripts": [{
|
"content_scripts": [{
|
||||||
|
|||||||
@@ -594,6 +594,9 @@
|
|||||||
"adblockerIssue": {
|
"adblockerIssue": {
|
||||||
"message": "It seems that something is blocking SponsorBlock's ability to get video data. This is probably your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests"
|
"message": "It seems that something is blocking SponsorBlock's ability to get video data. This is probably your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests"
|
||||||
},
|
},
|
||||||
|
"adblockerIssueUnlistedVideosInfo": {
|
||||||
|
"message": "If you are unable to resolve this, then disable the setting 'Ignore unlisted/private videos', as SponsorBlock is unable to retrieve the visibility information for this video"
|
||||||
|
},
|
||||||
"itCouldBeAdblockerIssue": {
|
"itCouldBeAdblockerIssue": {
|
||||||
"message": "If this keeps occuring, it could be caused by your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests"
|
"message": "If this keeps occuring, it could be caused by your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ async function videoIDChange(id) {
|
|||||||
try {
|
try {
|
||||||
await utils.wait(() => !!videoInfo, 5000, 1);
|
await utils.wait(() => !!videoInfo, 5000, 1);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
alert(chrome.i18n.getMessage("adblockerIssue"));
|
alert(chrome.i18n.getMessage("adblockerIssue") + "\n\n" + chrome.i18n.getMessage("adblockerIssueUnlistedVideosInfo"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isUnlisted()) {
|
if (isUnlisted()) {
|
||||||
@@ -719,6 +719,7 @@ async function getVideoInfo(): Promise<void> {
|
|||||||
const decodedData = decodeURIComponent(result.responseText).match(/player_response=([^&]*)/)[1];
|
const decodedData = decodeURIComponent(result.responseText).match(/player_response=([^&]*)/)[1];
|
||||||
if (!decodedData) {
|
if (!decodedData) {
|
||||||
console.error("[SB] Failed at getting video info from YouTube.");
|
console.error("[SB] Failed at getting video info from YouTube.");
|
||||||
|
console.error("[SB] Data returned from YouTube: " + result.responseText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user