FFmpeg PR fixes.

This commit is contained in:
Robert Honz
2024-11-06 09:41:39 +01:00
parent 5ff5167983
commit 8e7d6019ff
2 changed files with 11 additions and 9 deletions
+7 -8
View File
@@ -75,15 +75,14 @@ class Download:
if not self.settings.data.path_binary_ffmpeg and (
self.settings.data.video_convert_mp4 or self.settings.data.extract_flac
):
self.settings.data.path_binary_ffmpeg = shutil.which("ffmpeg")
if not self.settings.data.path_binary_ffmpeg:
self.settings.data.video_convert_mp4 = False
self.settings.data.extract_flac = False
self.settings.data.video_convert_mp4 = False
self.settings.data.extract_flac = False
self.fn_logger.error(
"FFmpeg is not set. Videos can be downloaded but will not be processed. FLAC cannot be extracted from MP4 containers. "
"Make sure FFmpeg is installed. The path to the binary can be specified (`path_binary_ffmpeg`)."
)
self.fn_logger.error(
"FFmpeg path is not set. Videos can be downloaded but will not be processed. FLAC cannot be "
"extracted from MP4 containers. Make sure FFmpeg is installed. The path to the FFmpeg binary must "
"be set in (`path_binary_ffmpeg`)."
)
def _download(
self,