[ffmpeg] adding exception catching for call to os.utime in run_ffmpeg_multiple_files

This commit is contained in:
Pete Hemery 2015-04-07 22:33:18 +01:00
parent a35099bd33
commit cc55d08832

View File

@ -146,7 +146,11 @@ def run_ffmpeg_multiple_files(self, input_paths, out_path, opts):
stderr = stderr.decode('utf-8', 'replace')
msg = stderr.strip().split('\n')[-1]
raise FFmpegPostProcessorError(msg)
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)