Skip to content

Commit

Permalink
Merge pull request #235 from play-dl/developer
Browse files Browse the repository at this point in the history
1.7.7
  • Loading branch information
iim-ayush committed Jan 7, 2022
2 parents 4a86d20 + 50b1583 commit 21e9ee8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions play-dl/YouTube/utils/extractor.ts
Expand Up @@ -197,6 +197,11 @@ export async function video_basic_info(url: string, options: InfoOptions = {}):
(res: any) => {
if (res.compactVideoRenderer)
related.push(`https://www.youtube.com/watch?v=${res.compactVideoRenderer.videoId}`);
if (res.itemSectionRenderer?.contents)
res.itemSectionRenderer.contents.forEach((x: any) => {
if (x.compactVideoRenderer)
related.push(`https://www.youtube.com/watch?v=${x.compactVideoRenderer.videoId}`);
});
}
);
const microformat = player_response.microformat.playerMicroformatRenderer;
Expand Down Expand Up @@ -553,6 +558,7 @@ async function acceptViewerDiscretion(
},
setControvercy: true
}),
cookies: true,
cookieJar
});

Expand All @@ -567,6 +573,7 @@ async function acceptViewerDiscretion(
['command', JSON.stringify(endpoint)],
['session_token', sessionToken]
]).toString(),
cookies: true,
cookieJar
});

Expand Down

0 comments on commit 21e9ee8

Please sign in to comment.