aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-03-29 03:44:17 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-03-29 03:44:51 +0530
commit8a7f68d0b12d0f4910a15b59a3ec090bbf83b6f2 (patch)
tree95acb4a3701fb9940f771d52a550f64f75b78ff5 /yt_dlp/utils.py
parent9139d2fae08b1d5ff8a0f5d9a280b44e4fa8bf40 (diff)
downloadhypervideo-pre-8a7f68d0b12d0f4910a15b59a3ec090bbf83b6f2.tar.lz
hypervideo-pre-8a7f68d0b12d0f4910a15b59a3ec090bbf83b6f2.tar.xz
hypervideo-pre-8a7f68d0b12d0f4910a15b59a3ec090bbf83b6f2.zip
[ffmpeg] Cache version data
Related: https://github.com/dasl-/pifi/issues/9
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 08e30d18f..62a1800d4 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -2713,7 +2713,9 @@ def check_executable(exe, args=[]):
return exe
-def _get_exe_version_output(exe, args):
+def _get_exe_version_output(exe, args, *, to_screen=None):
+ if to_screen:
+ to_screen(f'Checking exe version: {shell_quote([exe] + args)}')
try:
# STDIN should be redirected too. On UNIX-like systems, ffmpeg triggers
# SIGTTOU if yt-dlp is run in the background.