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.
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version isWhat is the purpose of your issue?
Description of your issue, suggested solution and other information
So I have a batch script that just prompts for the URL by using the 'set' command, setting the URL to %videoURL% so the command that the script ends up calling is:
youtube-dl --cookies ./udemy-cookies.txt -o "%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s" %videoURL%
The problem is that when I paste in the URL when prompted it creates a file named "(chapter_number)s - (playlist_index)s. (ext)s" instead of saving the videos in folders. However, the script works fine if I paste the same command replacing the %videoURL% with the actual URL to the Udemy course.
Any idea why this may be the case?