projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43bc889
)
[ffmpeg] Call encodeFilename on filenames
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 10 Jan 2015 05:13:18 +0000
(06:13 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sat, 10 Jan 2015 05:13:18 +0000
(06:13 +0100)
youtube_dl/postprocessor/ffmpeg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/ffmpeg.py
b/youtube_dl/postprocessor/ffmpeg.py
index 8bf5bebc31bb06ce57a86a2216aea2044dbb0bfc..26b99e43c33bd4bcebea171a9df71969273a1cc8 100644
(file)
--- 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()
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:
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)
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)
if self._deletetempfiles:
for ipath in input_paths:
os.remove(ipath)