node-youtube-dl icon indicating copy to clipboard operation
node-youtube-dl copied to clipboard

Won't recognize playlists as such

Open DiegoFleitas opened this issue 5 years ago • 9 comments

It does work when the link contains the playlist keyword https://www.youtube.com/playlist?list=PLzIUZKHPb1HbqsPMIFdE0My54iektZrNU but there is an alternative way to building a playlist url https://www.youtube.com/watch?v=shF8Sv-OswM&list=PLzIUZKHPb1HbqsPMIFdE0My54iektZrNU

DiegoFleitas avatar Dec 01 '19 04:12 DiegoFleitas

noticed that too !

dhiahassen avatar Dec 11 '19 14:12 dhiahassen

@DiegoFleitas Is that a problem just with node-youtube-dl or youtube-dl itself as well? Regarding node-youtube-dl: have you been using .exec or the default way?

yafp avatar Feb 15 '20 22:02 yafp

@yafp as far as I know it only happens with node-youtube-dl, since youtube-dl from the command line works perfectly for me. I'm just modifying the string to make it work but I think it should be treated as a bug in here

DiegoFleitas avatar Feb 16 '20 16:02 DiegoFleitas

Could be a problem related to how the url is interpreted since the - can be mixed with flags parser 🤔

Kikobeats avatar Feb 16 '20 18:02 Kikobeats

Any news on this ? I have the same problem and it's a pretty important feature to be able to download playlists.

xylish7 avatar Jul 23 '20 09:07 xylish7

@xylish7 its a pretty easy fix, just detect the list parameter and transform your unsupported url into a supported one with the playlist keyword if you need it quick as my example above. Note the playlist id is still the same

DiegoFleitas avatar Jul 23 '20 13:07 DiegoFleitas

@DiegoFleitas can you add the example to README? 🙂

Kikobeats avatar Jul 23 '20 22:07 Kikobeats

Sure, but I think a proper fix would be best since my "fix" is actually to circumvent the bug. Here's the PR https://github.com/przemyslawpluta/node-youtube-dl/pull/316/files

DiegoFleitas avatar Jul 24 '20 03:07 DiegoFleitas

@DiegoFleitas I've already done this, but I thought it was nice to do this without any custom things, by fixing the bug. So that's why I was asking when this would be fixed, but thank you for your fast answer 😁

xylish7 avatar Jul 26 '20 18:07 xylish7