Browse Source

Update: Write downloaded file without modification (allows hashsums)

master
Philipp Hagemeister 13 years ago
parent
commit
5f9f2b7396
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube-dl

2
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:

Loading…
Cancel
Save