larsrickert / discord-player-plus

🤖 Library for creating discord music bots using discord.js v14 written in TypeScript.
https://discordplayerplus.lars-rickert.de
MIT License
7 stars 2 forks source link

Youtube playlist search #5

Closed LuciaDX closed 2 years ago

LuciaDX commented 2 years ago

Describe the bug

If you search youtube playlist that starts with https://www.youtube.com/playlist?... it wont count as playlist

Reproduction

Try to add youtube playlist

System Info

Binaries:
    Node: 18.7.0 - /usr/bin/node
    npm: 8.15.0 - /usr/bin/npm
  npmPackages:
    discord-player-plus: ^1.1.1 => 1.1.1
    discord.js: ^14.0.3 => 14.0.3

Validations

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 1.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

larsrickert commented 2 years ago

Hey, thanks for reporting the issue! Its now fixed. It can now search playlists that starts with https://www.youtube.com/watch and https://www.youtube.com/playlist.

Regarding the number of tracks, note the following: YouTube handles /watch and /playlist links a little bit different, e.g.

Both playlist are the same but the second one (/playlist) contains all 236 songs while the first one (/watch) only shows 200 by default. If you click on the last song, it will show the remaining songs and the link changes. If you use the updated link when searching with discord-player-plus all songs will the provided. If using the initial /watch link, you will only get 200 songs like on YouTube. Thats the desired behaviour