diff options
author | Ajay Ramachandran <[email protected]> | 2021-06-20 20:56:42 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-06-20 20:56:42 -0400 |
commit | 930911e2b90d3b74a0358345f9109172dc8ff06b (patch) | |
tree | 33146ec50673352fa54eb51d10cc118721c22746 /src/content.ts | |
parent | 47b90b2c2ea3e8d95de81ca7acc1d4e35a82da98 (diff) | |
download | SponsorBlock-930911e2b90d3b74a0358345f9109172dc8ff06b.tar.gz SponsorBlock-930911e2b90d3b74a0358345f9109172dc8ff06b.zip |
Add more parameters to make get_video_info api work again
Diffstat (limited to 'src/content.ts')
-rw-r--r-- | src/content.ts | 2 |
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]; |