Browse Source

Fix add-versions

rtmp_test
Philipp Hagemeister 11 years ago
parent
commit
8851a574a3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      devscripts/gh-pages/add-version.py

+ 3
- 1
devscripts/gh-pages/add-version.py View File

@ -3,7 +3,8 @@
import json import json
import sys import sys
import hashlib import hashlib
import urllib.request
import os.path
if len(sys.argv) <= 1: if len(sys.argv) <= 1:
print('Specify the version number as parameter') print('Specify the version number as parameter')
@ -25,6 +26,7 @@ filenames = {
'tar': 'youtube-dl-%s.tar.gz' % version} 'tar': 'youtube-dl-%s.tar.gz' % version}
build_dir = os.path.join('..', '..', 'build', version) build_dir = os.path.join('..', '..', 'build', version)
for key, filename in filenames.items(): for key, filename in filenames.items():
url = 'https://yt-dl.org/downloads/%s/%s' % (version, filename)
fn = os.path.join(build_dir, filename) fn = os.path.join(build_dir, filename)
with open(fn, 'rb') as f: with open(fn, 'rb') as f:
data = f.read() data = f.read()


Loading…
Cancel
Save