alaouy / YouTube

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

[bug] listChannelVideos returning empty items list when channel is new #151

Closed ibrunotome closed 2 years ago

ibrunotome commented 4 years ago

Example: listChannelVideos('UC5p-sMbm64A8aJ586Cbm3Zw');

The above channel is new and has one posted video.

Also, it brokes with a message "Undefined property: stdClass::$items"

I dumped the api query right before the lib interact with items and got:

2020-06-28 17 03 37

alaouy commented 4 years ago

@ibrunotome Did you try the same query on Google's Youtube Data Explorer to check if it returns the same result?

ibrunotome commented 4 years ago

@alaouy Tested right now and it's working both on data explorer and in your library. But on the day that I open this issue, the channel was just created some hours before and the library wasn't finding videos, and unfortunally I didn't tested on data explorer on that day 😢