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.
Is there a way to get the urls of individual videos in a playlist? #21485
Comments
|
|
|
Thanks. |
|
@dstftw How do I save this json output to a file? I tried - |
|
Thanks, but I found a way to do that : |
Checklist
Question
Suppose I have a playlist P with 3 videos. Because of the possibility of the 2nd video being marked private, market deleted,or not being available in the requested format; I'm thinking of separate calls to youtube-dl for each video. But first, I need the individual urls. This needs to be as though I visited the playlist page and manually copied the individual URLs from there. This needs to work even for videos that can't be downloaded. I can detect errors later.
I ask because I have a PowerShell function that simplifies downloading playlists. I want it to skip invalid videos. If a video isn't available in a given format, I want my function to try other formats and then call ffmpeg to convert.