nstack-in / youtube_api

This Plugin will help you in fetching data from Youtube. You just need YOUTUBE API KEY.
Other
55 stars 52 forks source link

Get channel with maxResults more than exists videos in a channel. #44

Open ekalachev opened 2 years ago

ekalachev commented 2 years ago

When I try to load the channel's videos with only one video, it throws an exception. The problem solves if I put "1" for maxResults.

YoutubeAPI youtube = YoutubeAPI(key, type: "channel", maxResults: 1); videoResult = await youtube.channel(channelId);