alaouy / YouTube

🔥 Laravel PHP Facade/Wrapper for the Youtube Data API
MIT License
782 stars 204 forks source link

Retrieve Youtube Playlist ID #130

Closed sonichandni closed 5 years ago

sonichandni commented 5 years ago

Hello,

This package is worked good for retrieve video details and play list video by channel id. I want to get playlist id from the playlist URL. I tried this way:

$string = 'http://www.youtube.com/watch?v=A7izsd5IXq8&playnext=1&list=PL6753173C0F0BE9ED';
$url = parse_url($string);
parse_str($url['query'],$q);
$list = $q['list'];
$video = Youtube::getPlaylistItemsByPlaylistId($list);

But it not worked. It shows this error

:Error 404 The playlist identified with the requests playlistId parameter cannot be found. : playlistNotFound

If you know please help.

Thanks in advance!