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

This fix is only applicable to the CLI option

Authored by: Kenshin9977
pull/12460/head
Kenshin9977 1 week ago committed by GitHub
parent c034d65548
commit 9f77e04c76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

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

Loading…
Cancel
Save