projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9806fd
)
Fixed failure of os.rename after receiving file finished due to file not being closed.
author
Vasyl' Vavrychuk
<vvavrychuk@gmail.com>
Sun, 5 Dec 2010 18:57:46 +0000
(20:57 +0200)
committer
Vasyl' Vavrychuk
<vvavrychuk@gmail.com>
Sun, 5 Dec 2010 18:57:46 +0000
(20:57 +0200)
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
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index d0584a3126c6818e86ed96821e8bbabcfc2a9c7c..6b5f5693d254afcacb3cc6959d16ba68762d8668 100755
(executable)
--- 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))