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

best way to check if update is available (?) #8114

Closed
heniotierra opened this issue Jan 2, 2016 · 2 comments
Closed

best way to check if update is available (?) #8114

heniotierra opened this issue Jan 2, 2016 · 2 comments

Comments

@heniotierra
Copy link

@heniotierra heniotierra commented Jan 2, 2016

Hi,

I have incorporated youtube-dl in another program, and I just finished implementing youtube-dl automatic updating as the said program loads. It's working, but the problem is that I'm not sure if my strategy was the best one. What the program currently does is access youtube-dl Download page (https://rg3.github.io/youtube-dl/download.html) and then grab the MD5 hash there and compare against the hash of the currently installed version, and if the hash differs then it updates youtube-dl. But I guess this may not be so good for maintainability, since the page source may be modified anytime. I know I could simply always call sudo youtube-dl -U, but I prefer to only use the update command if necessary, because of performance (the program is for the Raspberry Pi). So, what do you think? Is there a better way to do it?

Thanks!

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 2, 2016

You may want to have at look at http://rg3.github.io/youtube-dl/update/versions.json and http://rg3.github.io/youtube-dl/update/LATEST_VERSION. These files are used internally for youtube-dl -U functionality.

@yan12125 yan12125 closed this Jan 2, 2016
@heniotierra
Copy link
Author

@heniotierra heniotierra commented Jan 2, 2016

Good, thanks!

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
2 participants
You can’t perform that action at this time.