Fix external downloader availability when using --ffmpeg-location (#12318)

This fix is only applicable to the CLI option

Authored by: Kenshin9977
This commit is contained in:
Kenshin9977 2025-02-23 09:50:43 +01:00 committed by GitHub
parent c034d65548
commit 9f77e04c76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -457,8 +457,6 @@ class FFmpegFD(ExternalFD):
@classmethod
def available(cls, path=None):
# TODO: Fix path for ffmpeg
# Fixme: This may be wrong when --ffmpeg-location is used
return FFmpegPostProcessor().available
def on_process_started(self, proc, stdin):

View File

@ -202,7 +202,7 @@ class FFmpegPostProcessor(PostProcessor):
@property
def available(self):
return self.basename is not None
return bool(self._ffmpeg_location.get()) or self.basename is not None
@property
def executable(self):