aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-10 06:13:18 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-10 06:13:18 +0100
commit52afb2ac1b6551350cf4d28ad0d758a136186297 (patch)
treec23bd17dfbdd4cade29be2b780749426ecbfffef /youtube_dl
parent43bc88903d0665c42f205bddd0a2f5017581e8be (diff)
[ffmpeg] Call encodeFilename on filenames
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index 8bf5bebc3..26b99e43c 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -82,7 +82,8 @@ class FFmpegPostProcessor(PostProcessor):
def run_ffmpeg_multiple_files(self, input_paths, out_path, opts):
self.check_version()
- oldest_mtime = min(os.stat(path).st_mtime for path in input_paths)
+ oldest_mtime = min(
+ os.stat(encodeFilename(path)).st_mtime for path in input_paths)
files_cmd = []
for path in input_paths:
@@ -100,7 +101,7 @@ class FFmpegPostProcessor(PostProcessor):
stderr = stderr.decode('utf-8', 'replace')
msg = stderr.strip().split('\n')[-1]
raise FFmpegPostProcessorError(msg)
- os.utime(out_path, (oldest_mtime, oldest_mtime))
+ os.utime(encodeFilename(out_path), (oldest_mtime, oldest_mtime))
if self._deletetempfiles:
for ipath in input_paths:
os.remove(ipath)