Skip to content

Commit

Permalink
fixed fetching of get_video_info endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 committed May 24, 2021
1 parent 34de92b commit 2d7b6ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/YouTubeDownloader.php
Expand Up @@ -49,6 +49,7 @@ public function getVideoInfo($video_id)
$video_id = Utils::extractVideoId($video_id);

$response = $this->client->get("https://www.youtube.com/get_video_info?" . http_build_query([
'html5' => 1,
'video_id' => $video_id,
'eurl' => 'https://youtube.googleapis.com/v/' . $video_id,
'el' => 'embedded' // or detailpage. default: embedded, will fail if video is not embeddable
Expand Down

0 comments on commit 2d7b6ee

Please sign in to comment.