youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit bca788ab1d477abfc29edb29480075ed10cace25
parent aef8fdba1172d60983ba9685249c03b66e7a94f0
Author: Sergey M <dstftw@gmail.com>
Date:   Wed,  8 Apr 2015 20:27:17 +0500

Merge pull request #5376 from PeteHemery/ffmpeg-postproc-utime-bug

[ffmpeg] adding exception catching for call to os.utime in run_ffmpeg_multiple_files
Diffstat:
Myoutube_dl/postprocessor/ffmpeg.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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)