Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3718

page not working ? youtube.com/get_video_info returning 404

$
0
0

anyone help for this problem this is working before some months ago but now its not workinghere is my code

    if($this->detectPlaylist($url) == false){    $yt = new \YouTubeDownloader();    $links = $yt->getDownloadLinks($url);    $id = $yt->extractId($url);    $content = file_get_contents("http://youtube.com/get_video_info?video_id=" .$id);    parse_str($content, $ytarr);    $img = "https://img.youtube.com/vi/".$id."/0.jpg";    $data['links'] = $links;    $data['thumbnail'] = $img;    $data['title'] = @$ytarr['title'];    return view('download.youtube-video',$data);    }else{    $playlist_id = $this->detectPlaylist($url);    $url = "https://www.youtube.com/list_ajax?style=json&action_get_list=1&list=PLvah45Gv0-CfNA0zfS4Sr6ov0pAL96Fr1";    $playlistData = json_decode(file_get_contents($url),true);    $data['playlist'] = $playlistData;    return view('download.youtube-playlist',$data);    }

Viewing all articles
Browse latest Browse all 3718

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>