7 ms·
I wish the installation was easier. It is reasonable to explain someone to write "youtube-dl -x <link>" to download music from youtube... But having them insta
by Double_a_92 7y ago
I wish the installation was easier. It is reasonable to explain someone to write "youtube-dl -x <link>" to download music from youtube...
But having them installing ffmpeg and python, manually copying some exe to a safe place, and adding that as a enviroment variable really cuts the interest off.
- r3bl 7y agoThat's because you're using Windows, which is really, really not designed with scripts in mind. Point to Ubuntu in the Microsoft Store. Python is preinstalled. You may need to install Python's package manager (I'm not sure does it come preinstalled) with "sudo apt install python3-pip". Install it from Python's package manager with "pip3 install youtube-dl". You could technically skip Python's package manager by just doing "sudo apt install youtube-dl", but updates are slow there, and you really don't want slow updates with this tool ("pip3 install --upgrade youtube-dl"). I'd argue that three commands are way easier to explain than installing two binaries and clicking around far too many times, especially because youtube-dl needs to be updated on a regular basis in order to work properly.
- Mindwipe 7y agoDid you honestly write this down thinking it was remotely any easier?
- r3bl 7y agoThen the alternative? Absolutely. The alternative requires finding the latest version of Python, installing it, modifying the environment path, finding the binary for youtube-dl, installing it, and only then figuring out how it works. "Execute these commands only once and then just type youtube-dl https://example.com https://example.com. If something breaks, run this command to upgrade the script and retry." If the target audience is someone who you think will feel comfortable doing youtube-dl in a terminal, you may as well point them to the total of three other commands to set things up.
- TeMPOraL 7y agoAFAIR youtube-dl had an .exe build, I remember setting it up for my mom; it boiled down to unzipping an archive and telling here to drag URLs onto this icon. And the FFMpeg part; that was a PITA, and something she wouldn't have guessed on her own.
- r3bl 7y ago> Windows exe requires Microsoft Visual C++ 2010 Redistributable Package (x86) and does not require Python that is already embedded into the binary. Yeah, that makes sense. Things have changed since last time I went through that pain.
- davesmith1983 7y agoYou don't have to do any of that nonsense. https://chocolatey.org/packages/youtube-dl https://chocolatey.org/packages/youtube-dl You install choco and add Youtube-dl. Job done. Which is mechanically pretty much the same as the way you install it via brew on a mac. I use Arch Linux and a Mac at home but at work I have to use Windows and I am constantly annoyed by people who never seem to use Windows telling others that it is impossible to do X without having to use some sort of Unix VM / Cygwin or WSL, when it reality is can be very simple.
- davesmith1983 7y agoFunny how I've been using vb, python, perl and bash scripts. Windows for the past 20 years. I suppose that didn't happen? Why do people who use Linux automatically think you cannot use scripts or there are no scripting languages on Windows?
- aasasd 7y agoMight be the use-case for Chocolatey or something like that, if more than just youtube-dl is going to be used in console. (Dunno which package managers are alright in Windows.)
- TeMPOraL 7y agoChocolatey is the way to go. Once you have it installed, it's just `choco install youtube-dl` and `choco install ffmpeg`. This is how you get Chocolatey: https://chocolatey.org/install https://chocolatey.org/install.
- mayeaux 7y agoI plan to package platform specific FFMpeg with the app especially now given the large initial interest. Then once I package everything for the different platforms via Electron it should be as easy as installing any other application an end-user would install, that's the hope.