mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 09:17:48 +00:00
Modify autoupdate URLs to match the ones from github.com
This commit is contained in:
parent
c34e358456
commit
893a13df55
1 changed files with 2 additions and 2 deletions
|
@ -2095,9 +2095,9 @@ if __name__ == '__main__':
|
||||||
sys.exit('ERROR: no write permissions on %s' % filename)
|
sys.exit('ERROR: no write permissions on %s' % filename)
|
||||||
|
|
||||||
downloader.to_screen('Updating to latest stable version...')
|
downloader.to_screen('Updating to latest stable version...')
|
||||||
latest_url = 'http://bitbucket.org/rg3/youtube-dl/raw/tip/LATEST_VERSION'
|
latest_url = 'http://github.com/rg3/youtube-dl/raw/master/LATEST_VERSION'
|
||||||
latest_version = urllib.urlopen(latest_url).read().strip()
|
latest_version = urllib.urlopen(latest_url).read().strip()
|
||||||
prog_url = 'http://bitbucket.org/rg3/youtube-dl/raw/%s/youtube-dl' % latest_version
|
prog_url = 'http://github.com/rg3/youtube-dl/raw/%s/youtube-dl' % latest_version
|
||||||
newcontent = urllib.urlopen(prog_url).read()
|
newcontent = urllib.urlopen(prog_url).read()
|
||||||
stream = open(filename, 'w')
|
stream = open(filename, 'w')
|
||||||
stream.write(newcontent)
|
stream.write(newcontent)
|
||||||
|
|
Loading…
Reference in a new issue