MrS0m30n3 / youtube-dl-gui

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

Question: Where should youtube-dlg install from source file in Linux; or store yt-dl updates? #298

Open bendover22 opened 6 years ago

bendover22 commented 6 years ago

Please follow the guide below

What operating system do you use ?

Linux Mint 18.1 Installed latest youtube-dlg (.41) by running: "python setup.py install"

I have questions - in Linux what path the youtube-dl-gui tar.gz file installs to by default; and then which path will it put yt-dl updates, if it's able to update yt-dl?

Previously, I installed both yt-dlg & yt-dl from a PPA in Mint's repo. They aren't updated often, so switched to files from each developer's site. Wasn't sure if a repo installed yt-dl & a tar installed yt-dl would work 100%.

Before I installed the source files, yt-dlg had problems updating yt-dl. (may have been a temp. issue). Yt-dlg would say it's downloading the latest youtube-dl, but checking version showed yt-dl wasn't updated. But updating it from CLI worked.

Issue now is, there are multiple versions. It appeared the youtube-dl-gui-0.4.tar.gz package installs by default to /usr/local/bin? There's ALSO a copy in /usr/bin (same size file). I imagine the latter was installed via Mint's repo?

Then there's a Yt-dl copy in /usr/local/bin and in the ~/config/youtube-dlg directory (NOT in it's own directory - seems odd?).

In the future, if yt-dlg installed from source file can update yt-dl, where will it try to put it? So I know which to uninstall now.

I'm guessing the copy of yt-dl in home directory (in the yt-dlg directory!) was put there - at some point by yt-dlg? (I didn't & doubt the repo version installer would put it there, either)? Thanks.

nodiscc commented 6 years ago

How did you install the program?

youtube-dlg downloads the youtube-dl binary to the directory specified in the youtubedl_path configuration option in settings.json .

On a linux system the default will be ~/.config/youtube-dl/youtube-dl (I agree that it is not ideal to store programs is ~/.config, it would probably be better in ~/.local)

To clear things up I suggest you remove any version of youtube-dlg and youtube-dl you might have installed. This could be:

At this point you should check that which youtube-dl or which youtube-dlg returns nothing, and install youtube-dlg from pip: pip2 install --user youtube-dlg

youtube-dlg will be available at ~/.local/bin/youtube-dl-gui. After clicking Update, the latest youtube-dl will be available at ~/.config/youtube-dl/youtube-dl