mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-01 05:00:44 +01:00
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:
parent
c034d65548
commit
9f77e04c76
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user