diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2011-08-28 22:10:03 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2011-08-28 22:10:03 +0200 |
commit | 5f9f2b739678dc8a02879714c8987dd887040676 (patch) | |
tree | 6d23507ea9e7725634d55a10919831468b4f5e53 | |
parent | 4618f3da74c61c79be3187a2818ea1ce6b28bb18 (diff) |
Update: Write downloaded file without modification (allows hashsums)
-rwxr-xr-x | youtube-dl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl index 3d43355c7..11d8ca01c 100755 --- 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, 'wb') stream.write(newcontent) stream.close() except (IOError, OSError), err: |