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.
Python - Video already downloaded. #2015
Comments
|
This works for me.
If file exists it throws errors
|
|
I give it a try quickly; it didn't work. I am going to explore some more |
|
It works! Trying to tweak it for a playlist URL. Sent from phone. Pardon spelling and grammar mistakes.
|
|
Can we close the issue then? |
|
Yes, please. Sent from phone. Pardon spelling and grammar mistakes.
|
I have a need to invoke youtube-dl from a Python code I am having. All my attempts to download the video ends with a message about the video being already downloaded. I am using -o option to specify a full path to a .mp4 file and this path does not have the said file. So, I am not sure, why am I getting this error message.
The code is somewhat like this:
I could confirm that the youtube-dl being invoked is the one I downloaded from this GitHub page by a print statement in the _real_main(). I also changed the sys.exit to a return so that the whole Python script wouldn't end up there itself (and, it doesn't).