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

[BUG] getPlaylist not working on repl.it #24

Closed Colonel-Ltd closed 3 years ago

Colonel-Ltd commented 3 years ago

SyntaxError: Unexpected token } in JSON at position 10674 at JSON.parse () at Object.parseGetPlaylist (/home/runner/Bot/node_modules/scrape-yt/dist/common/parser.js:274:36) at /home/runner/Discord-MusicBot/node_modules/scrape-yt/dist/index.js:162:64 at step (/home/runner/Discord-MusicBot/node_modules/scrape-yt/dist/index.js:54:23)

SuspiciousLookingOwl commented 3 years ago

Please provide more information, which id of playlist are you trying to get?

Colonel-Ltd commented 3 years ago

PL9bw4S5ePsEEqCMJSiYZ-KTtEjzVy0YvK

SuspiciousLookingOwl commented 3 years ago

I can't reproduce, are you using VPN / running it on a VPS? This can happens sometime if you are using VPN or running on a VPS.

Colonel-Ltd commented 3 years ago

i use free host like repl.it

SuspiciousLookingOwl commented 3 years ago

Just tried it on repl.it and it's indeed not working, I'm still not sure why, this sometimes also happens when using VPN, need further investigation.

Don't expect update anytime soon though because I'm currently busy working on other project, and planning to rewrite this library after I'm done with my other project.

Colonel-Ltd commented 3 years ago

OK