diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-09-06 11:07:34 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-09-06 11:07:34 +0200 |
commit | 8851a574a3d9a1716009c772d45d5ad4134f69bf (patch) | |
tree | e8cdde06454a02516799e1ec3cfd9ac62a34c9b3 /devscripts/gh-pages | |
parent | 59282080c894524e5ee72eb5aaf3aa3c3445cddc (diff) | |
download | youtube-dl-8851a574a3d9a1716009c772d45d5ad4134f69bf.zip youtube-dl-8851a574a3d9a1716009c772d45d5ad4134f69bf.tar.gz youtube-dl-8851a574a3d9a1716009c772d45d5ad4134f69bf.tar.bz2 |
Fix add-versions
Diffstat (limited to 'devscripts/gh-pages')
-rwxr-xr-x | devscripts/gh-pages/add-version.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devscripts/gh-pages/add-version.py b/devscripts/gh-pages/add-version.py index 03733c3..35865b2 100755 --- a/devscripts/gh-pages/add-version.py +++ b/devscripts/gh-pages/add-version.py @@ -3,7 +3,8 @@ import json import sys import hashlib -import urllib.request +import os.path + if len(sys.argv) <= 1: print('Specify the version number as parameter') @@ -25,6 +26,7 @@ filenames = { 'tar': 'youtube-dl-%s.tar.gz' % version} build_dir = os.path.join('..', '..', 'build', version) for key, filename in filenames.items(): + url = 'https://yt-dl.org/downloads/%s/%s' % (version, filename) fn = os.path.join(build_dir, filename) with open(fn, 'rb') as f: data = f.read() |