alaouy / YouTube

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

Can't validate and get data from Clip and Playlist #184

Closed micio86dev closed 11 months ago

micio86dev commented 1 year ago

If I try to validate a clip or playlist url isn't valid. If I force to get data from url, without validate it, got an exception:

exception: "ErrorException" file: "/var/www/html/api.silenthillweb/source/vendor/alaouy/youtube/src/Youtube.php" line: 782 message: "Undefined array key \"query\""

alaouy commented 1 year ago

@micio86dev Can you provide a code snippet example illustrating the issue?

micio86dev commented 1 year ago

@micio86dev Can you provide a code snippet example illustrating the issue?

This is a clip URL: https://youtube.com/clip/Ugkxz0H9KblwVfnSfWGJiHAwlBPFCEiqRinB

This is a playlist URL: https://youtube.com/playlist?list=PLy1bC-662HHKXOVHInxvhSRReDz0d4xCI

alaouy commented 1 year ago

@micio86dev Please provide the code snippets that is throwing this exception, it will easier to debug and understand.