mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-15 12:45:27 +00:00
[pp/ffmpeg] Fix uncaught error if bad --ffmpeg-location is given (#15104)
Revert 9f77e04c76
Closes #12829
Authored by: bashonly
This commit is contained in:
@@ -192,7 +192,10 @@ class FFmpegPostProcessor(PostProcessor):
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
return bool(self._ffmpeg_location.get()) or self.basename is not None
|
||||
# If we return that ffmpeg is available, then the basename property *must* be run
|
||||
# (as doing so has side effects), and its value can never be None
|
||||
# See: https://github.com/yt-dlp/yt-dlp/issues/12829
|
||||
return self.basename is not None
|
||||
|
||||
@property
|
||||
def executable(self):
|
||||
|
||||
Reference in New Issue
Block a user