projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4618f3d
)
Update: Write downloaded file without modification (allows hashsums)
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 28 Aug 2011 20:10:03 +0000
(22:10 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 28 Aug 2011 20:10:03 +0000
(22:10 +0200)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 3d43355c7538c67e29c4ee72344f14a96e2e5458..11d8ca01c2ad89a51277421b17a40985a899b08c 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: