Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
noplaylist doesn't work as Python Method #4309
Comments
|
It seems to work fine: import youtube_dl
ydl = youtube_dl.YoutubeDL(params={
'noplaylist':True,
'outtmpl': 'example/%(id)s',
})
ydl.download(['https://www.youtube.com/watch?v=bV9L5Ht9LgY&index=1&list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re'])Will just download
Could you give more info? Like youtube_dl version, url that shows the problem, the code that you use... |
|
You're right, with your URL it worked, but it doesn't work with this one: https://www.youtube.com/playlist?list=PLEB7907E8F277754A |
|
That's normal, the url doesn't contain any video id, so there's no doubt that it's a playlist url (see the option description). Note that |
|
Maybe we should rename @capital-G If you want youtube-dl to bail if it detects a playlist, please open a new issue. Don't forget to provide us with lots of context, without which any request is likely to be lingering or even be closed outright. |
Hi there,
I currently use YTDL in a python project of mine and it seems I found a bug in it:
If i create a new YTDL method like
ydl = youtube_dl.YoutubeDL(params={'noplaylist':True,})
It still downloads Playlists, because it goes this way
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/YoutubeDL.py#L657-L663
and not this way:
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1161