New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all video's are returning a list of URLs #73
Comments
Same issue here, to solve this I changed the lines into class YouTubeDownloader.php at function getDownloadLinks(): // get JSON encoded parameters that appear on video pages
$json = $this->getPlayerResponse($page_html);
if ($json === null) {
$json = $this->getVideoInfo($this->extractVideoId($video_id));
}
// get player.js location that holds signature function
$url = $this->getPlayerScriptUrl($page_html);
$js = $this->getPlayerCode($url);
$result = $this->parsePlayerResponse($json['player_response'], $js); |
#73 (comment) that works! |
this one not working too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was testing out this script when I noticed that not all video's are working.
For example, this video returns an empty
array
: https://www.youtube.com/watch?v=FyKWUTwSYAsI noticed when I logged the
$page_html
inYouTubeDownloader.php:138 getPlayerResponse()
that the layout looks different then for example this video: https://www.youtube.com/watch?v=1Q8fG0TtVAYThe text was updated successfully, but these errors were encountered: