projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FFmpegPostProcessor: print the command line used if the --verbose option is given
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index de26547621b2172b8bea45083606c407882346d2..0457f3dedb06bce5fdce6cff1bf87b074b7206da 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-9,6
+9,7
@@
import io
import json
import locale
import os
import json
import locale
import os
+import pipes
import platform
import re
import socket
import platform
import re
import socket
@@
-715,6
+716,7
@@
def unified_strdate(date_str):
'%Y/%m/%d %H:%M:%S',
'%d.%m.%Y %H:%M',
'%Y-%m-%dT%H:%M:%SZ',
'%Y/%m/%d %H:%M:%S',
'%d.%m.%Y %H:%M',
'%Y-%m-%dT%H:%M:%SZ',
+ '%Y-%m-%dT%H:%M:%S',
]
for expression in format_expressions:
try:
]
for expression in format_expressions:
try:
@@
-926,3
+928,7
@@
class locked_file(object):
def read(self, *args):
return self.f.read(*args)
def read(self, *args):
return self.f.read(*args)
+
+
+def shell_quote(args):
+ return ' '.join(map(pipes.quote, args))