freyacodes / ukulele

Simple self-contained Discord music bot
MIT License
157 stars 75 forks source link

Handle playlist links with specific song selected #47

Open themadprofessor opened 2 years ago

themadprofessor commented 2 years ago

If a link contains both a video and a playlist, it will now only add the specific video, not the whole playlist.

freyacodes commented 2 years ago

This looks like it will make it difficult to add a playlist to the queue

themadprofessor commented 2 years ago

Playlists can still be added. https://www.youtube.com/playlist?list=... will queue the playlist, whereas https://www.youtube.com/watch?v=...&list=... will queue just the video. This could be put behind a config variable, keeping the existing method if its false.

freyacodes commented 2 years ago

The current behavior is deliberate

An acceptable solution would instead be to ask the user if they prefer one track or all tracks when using such a URL. This could ideally be done with buttons https://discord.com/developers/docs/interactions/message-components