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); }