Skip to content

Commit

Permalink
docs(example): clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Nov 14, 2020
1 parent cba8dde commit 997efdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const fs = require('fs');
// - scroll down to "Request Headers"
// - find the "cookie" header and copy its entire contents
const COOKIE = 'key1=value1; key2=value2; key3=value3';
const id = 'aqz-KE-bpKQ';
const videoID = 'aqz-KE-bpKQ';

const outputName = 'video.mp4';
const outputPath = path.resolve(__dirname, outputName);
const video = ytdl(id, {
const video = ytdl(videoID, {
requestOptions: {
headers: {
cookie: COOKIE,
Expand Down

0 comments on commit 997efdd

Please sign in to comment.