Browse Source

Strip newline from version

master
Ricardo Garcia 16 years ago
parent
commit
3c53b78720
1 changed files with 1 additions and 1 deletions
  1. 2
      generate-index

2
generate-index

@ -3,7 +3,7 @@ import hashlib
import subprocess
template = file('index.html.in', 'r').read()
version = subprocess.Popen(['./youtube-dl', '--version'], stdout=subprocess.PIPE).communicate()[0]
version = subprocess.Popen(['./youtube-dl', '--version'], stdout=subprocess.PIPE).communicate()[0].strip()
data = file('youtube-dl', 'rb').read()
md5sum = hashlib.md5(data).hexdigest()
sha1sum = hashlib.sha1(data).hexdigest()

Loading…
Cancel
Save