mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 20:17:05 +03:00
Add more parameters to make get_video_info api work again
(cherry picked from commit 930911e2b9)
This commit is contained in:
@@ -721,7 +721,7 @@ function startSkipScheduleCheckingForStartSponsors() {
|
|||||||
* Get the video info for the current tab from YouTube
|
* Get the video info for the current tab from YouTube
|
||||||
*/
|
*/
|
||||||
async function getVideoInfo(): Promise<void> {
|
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) {
|
if (result.ok) {
|
||||||
const decodedData = decodeURIComponent(result.responseText).match(/player_response=([^&]*)/)[1];
|
const decodedData = decodeURIComponent(result.responseText).match(/player_response=([^&]*)/)[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user