Support environment variables in `--ffmpeg-location`

Closes #4938
pull/4947/head
pukkandan 2022-09-16 18:24:29 +05:30
rodzic fc2ba496fd
commit 5736d79172
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7EEE9E1E817D0A39
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -920,6 +920,7 @@ def _real_main(argv=None):
# We may need ffmpeg_location without having access to the YoutubeDL instance
# See https://github.com/yt-dlp/yt-dlp/issues/2191
if opts.ffmpeg_location:
opts.ffmpeg_location = expand_path(opts.ffmpeg_location)
FFmpegPostProcessor._ffmpeg_location.set(opts.ffmpeg_location)
with YoutubeDL(ydl_opts) as ydl: