aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-06-20 20:56:42 -0400
committerAjay Ramachandran <[email protected]>2021-06-23 19:22:03 -0400
commita6728d34a03f93176741e32b39fe683e0625ec90 (patch)
tree7e809d833776d401573235c5b49d8a710a4d18fd
parentf2fa853f2cb68e82fa5e8b5eb6927e6b71fc919b (diff)
downloadSponsorBlock-a6728d34a03f93176741e32b39fe683e0625ec90.tar.gz
SponsorBlock-a6728d34a03f93176741e32b39fe683e0625ec90.zip
Add more parameters to make get_video_info api work again
(cherry picked from commit 930911e2b90d3b74a0358345f9109172dc8ff06b)
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index 8ecddad1..85bae210 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -721,7 +721,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];