youtubei: [BUG] Unresolved function or method

These two functions are not working.

  const channelVideos = await video.channel.getVideos();
  const channelPlaylists = await video.channel.getPlaylists();

Attached screenshot -

Screenshot 2021-08-30 at 12 38 50 PM

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

If the channel is having more than 1000 videos, it will create a timeout error

@musso appreciate you reporting bugs, but please create a new issue next time for better tracking.

About the timeout error, it’s most likely caused by an unstable connection. I successfully fetched all videos from Linus Tech Tips channel (ID: UCXuqSBlHAE6Xw-yeJA0Tunw), which has 5796 videos (at the time I write this comment), it took me 46.3 seconds (it sent 194 requests sequentially, each fetch get 30 videos)

My bad, I copy pasted your code 😂 it’s supposed to be nextVideos, not getVideos

const channelVideos = await video.channel.nextVideos(0);