Skip to content

Commit

Permalink
Fix play-dl cookie setting error (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoPe authored Mar 28, 2024
1 parent b677fbf commit 6c90c33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/extractor/src/extractors/common/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ export async function loadYtdl(options?: any, force = false) {

if (typeof options?.requestOptions?.headers?.cookie === 'string') {
dl.setToken({
youtube: options.requestOptions.headers.cookie
youtube: {
cookie: options.requestOptions.headers.cookie
}
});
}
const info = await dl.video_info(query);
Expand Down

0 comments on commit 6c90c33

Please sign in to comment.