diff options
author | Vasyl' Vavrychuk <[email protected]> | 2010-12-05 20:57:46 +0200 |
---|---|---|
committer | Vasyl' Vavrychuk <[email protected]> | 2010-12-05 20:57:46 +0200 |
commit | 6f0ff3bab9f213790817e3344bb5025a7fbea1e4 (patch) | |
tree | bf51324d664457b34a332500f24fd664d7058d7b | |
parent | a9806fd83d7efc4cc1dcd11174c839f637d0c105 (diff) | |
download | youtube-dl-6f0ff3bab9f213790817e3344bb5025a7fbea1e4.tar.gz youtube-dl-6f0ff3bab9f213790817e3344bb5025a7fbea1e4.zip |
Fixed failure of os.rename after receiving file finished due to file not being closed.
Following error happen while at the end of _do_download called try_rename
WindowsError: [Error 32] The process cannot access the file because it is being used by another process
-rwxr-xr-x | youtube-dl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube-dl b/youtube-dl index d0584a312..6b5f5693d 100755 --- a/youtube-dl +++ b/youtube-dl @@ -640,6 +640,7 @@ class FileDownloader(object): # Apply rate limit self.slow_down(start, byte_counter) + stream.close() self.report_finish() if data_len is not None and str(byte_counter) != data_len: raise ContentTooShortError(byte_counter, long(data_len)) |