Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download page should make use of a link without version, but with 'latest' tag instead. #4677

Closed
deragon opened this issue Jan 10, 2015 · 2 comments

Comments

@deragon
Copy link

@deragon deragon commented Jan 10, 2015

http://rg3.github.io/youtube-dl/download.html hard codes the latest version in the command to download it.

sudo curl https://yt-dl.org/downloads/2015.01.10.2/youtube-dl -o /usr/local/bin/youtube-dl

When I install a new Linux machine, I would like to run a script that downloads the latest. Therefore, I would like to be able to run:

sudo curl https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

Notice the verrsion replaced by 'latest'.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 10, 2015

You can actually use it curl 'https://yt-dl.org/downloads/latest/youtube-dl' -L -o /path/to/youtube-dl

@jaimeMF jaimeMF closed this Jan 10, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Jan 10, 2015

As @jaimeMF said, your suggestion is implemented already! There's also the shorter https://yt-dl.org/latest/youtube-dl if you want.

Note that there is a reason why the download page hardcodes the version number. If it were dynamic, the checksums published there would not match the actual files during the release of a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.