kabirjaipal / JUGNU-MUSIC

Top-notch Music Bot with Buttons, premium Filters, sleek UI, dedicated bot channel support. Built on Distube.JS, Discord.JS, Express.js, and Josh wrapper for SQL and Mongoose
https://jugnu.netlify.app
MIT License
265 stars 367 forks source link

Playlist limit? #50

Closed Sudo-null7 closed 1 year ago

Sudo-null7 commented 1 year ago

Hi,

with this code the bot won't allow more then 100 songs in a playlist like: https://open.spotify.com/playlist/0CDe8sRXL5SgXLXVH70EBk?si=179ee83e036e49eb it outputs this to console

 [Error_Handling] :: Unhandled Rejection/Catch
TypeError [PlayError]: https://open.spotify.com/playlist/0CDe8sRXL5SgXLXVH70EBk?si=179ee83e036e49eb
Cannot read properties of undefined (reading '0')
    at SpotifyPlugin.play (/home/runner/JUGNU-MUSIC/node_modules/@distube/spotify/dist/index.js:183:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async DisTube.play (/home/runner/JUGNU-MUSIC/node_modules/distube/dist/index.js:2229:13) Promise {
  <rejected> TypeError [PlayError]: https://open.spotify.com/playlist/0CDe8sRXL5SgXLXVH70EBk?si=179ee83e036e49eb
  Cannot read properties of undefined (reading '0')
      at SpotifyPlugin.play (/home/runner/JUGNU-MUSIC/node_modules/@distube/spotify/dist/index.js:183:36)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async DisTube.play (/home/runner/JUGNU-MUSIC/node_modules/distube/dist/index.js:2229:13)
}

Can you fix this problem as other bots can do more then this

Sudo-null7 commented 1 year ago

it doesn't work with any type of spotify playlist links

kabirjaipal commented 1 year ago

its working now try Screenshot 2023-02-11 230326