mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-01 11:30:28 +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
|
@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…
x
Reference in New Issue
Block a user