git://git.jankratochvil.net
/
youtube-dl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update: Write downloaded file without modification (allows hashsums)
[youtube-dl.git]
/
youtube-dl
diff --git
a/youtube-dl
b/youtube-dl
index
3d43355
..
11d8ca0
100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-2965,7
+2965,7
@@
def updateSelf(downloader, filename):
sys.exit('ERROR: unable to download latest version')
try:
- stream = open(filename, 'w')
+ stream = open(filename, 'w
b
')
stream.write(newcontent)
stream.close()
except (IOError, OSError), err: