oleksis / youtube-dl-gui

A cross platform front-end GUI of the popular youtube-dl written in wxPython.
https://oleksis.github.io/youtube-dl-gui/
The Unlicense
1.68k stars 108 forks source link

Is there a way to point to pre-existing installation of yt-dlg.exe and or youtube-dl.exe? #140

Open DumbJoe opened 1 year ago

DumbJoe commented 1 year ago

For example if you moved them from roaming folder to somewhere else and wish it be executed there rather than in the roaming folder or already have it downloaded as part of something else (or have them all in the same folder as youtube-dl-gui) that you could also use since this is just a front end gui which should be able to point to an existing copy and run commands to that?

Speaking of commands, are you able to output the commands in a different window too to see what sort of commands are being automated into the cli programs? And have them editable so before you hit confirm, you can decide you want something extra in there so you edit the command and then hit confirm/accept?

oleksis commented 1 year ago

You can download the executable example yt-dlg.exe , this binary has embedded Python 3 interpreter and dependencies embedded so you don't need to have Python installed on your operating system. You can run the .exe from any directory

The commands yt-dlg pass to the CLI Backend like yt-dlp/youtube-dl you need check the Debug option and see commands in the windows View logs

Check Frequently Asked Questions

DumbJoe commented 1 year ago

If the compiled executable file has python 3 and all dependencies to run the program(effectively making it 100% portable), how come it tries to download youtube-dl.exe or yt-dlp.exe to %AppData%\yt-dlg? And when you don't have python installed or wxPython and PyPubSub, it complains about it until you install them and it starts?

oleksis commented 1 year ago

For the executable(.exe) we use PyInstaller, it added all the dependencies with the bundle Python interpreter

You can share the steps or logs how you get the error or this behaviour?

DumbJoe commented 1 year ago

Try it yourself; uninstall python and those two addons, then download your own program and try to run it without having python and those addons installed. It will complain your missing stuff.... As for the other bit, if you go to %AppData%\yt-dlg and then sit there, then open up your program and try to download whatever video, it will first download either youtube-dl.exe or yt-dlp.exe depending on which on your chose before passing the commands to them. Either that or it extracts its copy of them into that folder (for some reason) and then executes commands to it.