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.
Youtube --flat-playlist extractor on filters=playlist search url results in video id instead of playlist id #25652
Comments
|
How is this unclear? Wrong: Right: |
|
@dstftw ? |
|
Duplicate of #16627. |
Checklist
Verbose log
Description
Searched for https://www.youtube.com/results?search_query=nightcore&filters=playlist&lclk=video
with --default-search ytsearch1 --dump-single-json --playlist-start 1 --playlist-end 1 --flat-playlist
As we get playlist only results listed from youtube, we need to get the playlist id instead of the first video id inside the playlist.
So we have to make sure if the resulted id/url contains &list=XXXXXXXXXXXXXXXXXXX and add the list id as result id instead of the video id. Otherwise its not possible to get the correct playlist id/url.
Result from youtube.com:
https://www.youtube.com/watch?v=cvaIgq5j2Q8&list=PL0wqt_um4x0bsdViTJBmnl6KGMoSqxfZy
We need the playlist id "PL0wqt_um4x0bsdViTJBmnl6KGMoSqxfZy" but youtube-dl results the video id "cvaIgq5j2Q8" which is wrong.