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.
A question about running youtube-dl for the first time. #1492
Comments
|
That file is just there for legacy reasons (to allow old versions to update) and will likely be removed (when we're reasonably sure that no old versions are present anymore). If you follow the installation instructions (or use pip, or your distribution's package manager to install youtube-dl), you will never see it. The reason that current releases of youtube-dl are binary (well, they're basically a zip file) is that the source code has grown too large to be maintained in a single source file. The zip file just contains all If you want to develop youtube-dl, feel free to remove the file if it bothers you (but please don't record the removal in a commit). You can run youtube-dl either by typing |
|
Oh, and the reason why we can't simply distribute |
Hey. just a short question,
Generally and very briefly going over the code, I see that the first time running ./youtube-dl, it prompts the user for what it's about to do and than gets new content from http://rg3.github.io/youtube-dl/update/ and writes the received
newcontentto itself. This changes this file from python code to a binary.I was wondering about the benefits of this flow. Is this about efficiency? What is this binary responsible for? Why not fetch a new file which is python code as well, with a "shabang" for the python interpreter, similar to the original file? (Just one that imports the module, and runs it with the accepted arguments)
A little confused here. Thanks! :)