Skip to content

Commit

Permalink
fix: api continuation requests (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete authored May 12, 2024
1 parent b70c0f5 commit 87c238b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yt-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function generateRequestHeaders(config: YTConfigData, headerKeys: HeaderKey[] =
'X-YouTube-Page-CL': config.PAGE_CL,
'X-YouTube-Page-Label': config.PAGE_BUILD_LABEL,
// Those two are mandatory together to successfully perform request
'X-Goog-AuthUser': '0',
'X-Goog-AuthUser': '1',
'X-Goog-PageId': config.DELEGATED_SESSION_ID,
Authorization: `SAPISIDHASH ${generateSAPISIDHASH(config.ORIGIN_URL, config.SAPISID)}`,
}
Expand Down

0 comments on commit 87c238b

Please sign in to comment.