From d1f535712410eebd79a7468abd07d94f8c4ebe5a Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 20 Jun 2021 00:40:57 +0200 Subject: [PATCH] fix: add parameters to `get_video_info` endpoint fixes 404 errors --- lib/info.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/info.js b/lib/info.js index 417f8761..a2dd09ad 100644 --- a/lib/info.js +++ b/lib/info.js @@ -325,6 +325,8 @@ const VIDEO_EURL = 'https://youtube.googleapis.com/v/'; const getVideoInfoPage = async(id, options) => { const url = new URL(`https://${INFO_HOST}${INFO_PATH}`); url.searchParams.set('video_id', id); + url.searchParams.set('c', 'TVHTML5'); + url.searchParams.set('cver', '7.20190319'); url.searchParams.set('eurl', VIDEO_EURL + id); url.searchParams.set('ps', 'default'); url.searchParams.set('gl', 'US');