aboutsummaryrefslogtreecommitdiff
path: root/generate-index
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2008-07-22 23:02:42 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:23:31 +0100
commit3c53b78720fa68ca801e026d981940387a2cb733 (patch)
treef316faf86718e8bca620a349ceff3a5df3a05b9b /generate-index
parentbb028346923a1b53bb8852ded546e08a1516dd49 (diff)
Strip newline from version
Diffstat (limited to 'generate-index')
-rwxr-xr-xgenerate-index2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-index b/generate-index
index 324001cae..f8f940e4c 100755
--- a/generate-index
+++ b/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()