From 8a7f68d0b12d0f4910a15b59a3ec090bbf83b6f2 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 29 Mar 2022 03:44:17 +0530 Subject: [ffmpeg] Cache version data Related: https://github.com/dasl-/pifi/issues/9 --- yt_dlp/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'yt_dlp/utils.py') 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. -- cgit v1.2.3