SuspiciousLookingOwl / youtubei

Get Youtube data such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
https://suspiciouslookingowl.github.io/youtubei
MIT License
221 stars 50 forks source link

bug when getting channel data #112

Open synhya1 opened 1 month ago

synhya1 commented 1 month ago

channelId : UCOHmct2_NzwnVB0EgPT3yfg UClcddCtgWjyaK_yc03MN-VA UCoPlkvMa7MKzBRBWtzkDNbg

log: TypeError: Cannot read properties of undefined (reading 'metadataParts') at ChannelParser.loadChannel (C:\Users\somes\OneDrive\바탕 화면\music\shortsmusic_admin\node_modules.pnpm\youtubei@1.5.4\node_modules\youtubei\dist\cjs\youtube\Channel\ChannelParser.js:30:47) at Channel.load (C:\Users\somes\OneDrive\바탕 화면\music\shortsmusic_admin\node_modules.pnpm\youtubei@1.5.4\node_modules\youtubei\dist\cjs\youtube\Channel\Channel.js:20:39) at Client. (C:\Users\somes\OneDrive\바탕 화면\music\shortsmusic_admin\node_modules.pnpm\youtubei@1.5.4\node_modules\youtubei\dist\cjs\youtube\Client\Client.js:103:60)

code: const channel = await youtube.getChannel(channelId);

those 3 channels have no videos and subscribers

SuspiciousLookingOwl commented 1 month ago

Hi. Sorry, I've been busy with real-life stuff. I'll try to look into it when I'm free.