aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-06-20 20:56:42 -0400
committerAjay Ramachandran <[email protected]>2021-06-20 20:56:42 -0400
commit930911e2b90d3b74a0358345f9109172dc8ff06b (patch)
tree33146ec50673352fa54eb51d10cc118721c22746 /src
parent47b90b2c2ea3e8d95de81ca7acc1d4e35a82da98 (diff)
downloadSponsorBlock-930911e2b90d3b74a0358345f9109172dc8ff06b.tar.gz
SponsorBlock-930911e2b90d3b74a0358345f9109172dc8ff06b.zip
Add more parameters to make get_video_info api work again
Diffstat (limited to 'src')
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index d4dd3845..d6c47c83 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -722,7 +722,7 @@ function startSkipScheduleCheckingForStartSponsors() {
* Get the video info for the current tab from YouTube
*/
async function getVideoInfo(): Promise<void> {
- const result = await utils.asyncRequestToCustomServer("GET", "https://www.youtube.com/get_video_info?video_id=" + sponsorVideoID + "&html5=1");
+ const result = await utils.asyncRequestToCustomServer("GET", "https://www.youtube.com/get_video_info?video_id=" + sponsorVideoID + "&html5=1&c=TVHTML5&cver=7.20190319");
if (result.ok) {
const decodedData = decodeURIComponent(result.responseText).match(/player_response=([^&]*)/)[1];