projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5928208
)
Fix add-versions
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 6 Sep 2013 09:07:34 +0000
(11:07 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 6 Sep 2013 09:07:34 +0000
(11:07 +0200)
devscripts/gh-pages/add-version.py
patch
|
blob
|
history
diff --git
a/devscripts/gh-pages/add-version.py
b/devscripts/gh-pages/add-version.py
index 03733c35d21a8f73662555e637a5f9d026a0a94b..35865b2f30f9526f4a05b4bad594f078f5a56443 100755
(executable)
--- 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()