SuspiciousLookingOwl / scrape-yt

Simple lib to scrape information from youtube such as search results, video information, related videos, playlist information and up next video
https://www.npmjs.com/package/scrape-yt
MIT License
9 stars 3 forks source link

playlistSidebarSecondaryInfoRenderer undefined when to getting playlist #22

Closed joshgare closed 3 years ago

joshgare commented 3 years ago

When using scrape-yt to scrape YouTube playlists I am getting the following the error:

Cannot read property 'playlistSidebarSecondaryInfoRenderer' of undefined.

This error occurred when trying to get the playlist with ID: RDCLAK5uy_mfut9V_o1n9nVG_m5yZ3ztCif29AHUffI.

This was done with the following code running v1.4.5 of scrape-yt:

await scrapeYt.getPlaylist("RDCLAK5uy_mfut9V_o1n9nVG_m5yZ3ztCif29AHUffI")

One other point to add is that I was trying to obtain 10 or so other playlists at the same time, so it might be a throttle kicking in?

SuspiciousLookingOwl commented 3 years ago

Thank you for reporting this.

This happens when you are trying to get playlist without channel information. Fixing it very soon.

SuspiciousLookingOwl commented 3 years ago

Please update to v1.4.6 and try again! If the issue still persists, feel free to reopen this issue 😄

joshgare commented 3 years ago

Unreal turnaround - you beat me with my fork and incoming PR 👏🏼. Will report back!

EDIT: Everything is working as expected- thanks again!