projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35099b
)
[ffmpeg] adding exception catching for call to os.utime in run_ffmpeg_multiple_files
author
Pete Hemery
<petehemery@hotmail.com>
Tue, 7 Apr 2015 21:33:18 +0000
(22:33 +0100)
committer
Pete Hemery
<petehemery@hotmail.com>
Tue, 7 Apr 2015 21:33:18 +0000
(22:33 +0100)
youtube_dl/postprocessor/ffmpeg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/ffmpeg.py
b/youtube_dl/postprocessor/ffmpeg.py
index 0b60ac7e750bc2b308e4c7a8c01c8b988b036450..5ef5e0e545ab498554b9c2eedd115b88a17248e6 100644
(file)
--- a/
youtube_dl/postprocessor/ffmpeg.py
+++ b/
youtube_dl/postprocessor/ffmpeg.py
@@
-146,7
+146,11
@@
class FFmpegPostProcessor(PostProcessor):
stderr = stderr.decode('utf-8', 'replace')
msg = stderr.strip().split('\n')[-1]
raise FFmpegPostProcessorError(msg)
- os.utime(encodeFilename(out_path), (oldest_mtime, oldest_mtime))
+ try:
+ os.utime(encodeFilename(out_path), (oldest_mtime, oldest_mtime))
+ except Exception:
+ self._downloader.report_warning('Cannot update utime of file')
+
if self._deletetempfiles:
for ipath in input_paths:
os.remove(ipath)