MrS0m30n3 / youtube-dl-gui

A cross platform front-end GUI of the popular youtube-dl written in wxPython.
The Unlicense
9.27k stars 1.58k forks source link

Where is DLG's install directory for youtube-dl? #445

Closed KirbyFan102 closed 4 years ago

KirbyFan102 commented 4 years ago

What is the purpose of your issue?

I recently installed youtube-dl via python, and would like to make youtube-DLG use that version instead. So I would like to find where it originally installed youtube-dl and see if it can work using the version of the program on my python directory.

JamoDevNich commented 4 years ago

On my Windows machine it's in the %appdata%/youtube-dlg folder compiled as an exe.

https://github.com/MrS0m30n3/youtube-dl-gui/blob/57eb51ccc8e2df4e8c766b31d677513adb5c86cb/youtube_dl_gui/utils.py#L180

KirbyFan102 commented 4 years ago

If I delete this version, and click on the update youtube-dl button, will dl-gui just reinstall it to that directory? Or will it instead update the python version of it?

JamoDevNich commented 4 years ago

From what I can see in the code it can only update the version of youtube-dl that it downloads itself, you would need to update the python version of youtube-dl externally. So yes it would just re-install to that directory.

https://github.com/MrS0m30n3/youtube-dl-gui/blob/master/youtube_dl_gui/updatemanager.py#L30

Also looks like there is an option to disable updates but this doesn't appear to be accessible from the UI (can't find it)

https://github.com/MrS0m30n3/youtube-dl-gui/blob/57eb51ccc8e2df4e8c766b31d677513adb5c86cb/youtube_dl_gui/mainframe.py#L1040

KirbyFan102 commented 4 years ago

That's good to know, thanks.