From 22c777863088f90c7f3f9df613b42952abab856d Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 9 Jan 2022 17:21:45 +0100 Subject: Give the ability to define python path for youtube-dl / yt-dlp --- server/helpers/youtube-dl/youtube-dl-cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/helpers/youtube-dl') diff --git a/server/helpers/youtube-dl/youtube-dl-cli.ts b/server/helpers/youtube-dl/youtube-dl-cli.ts index 559f92984..293acff43 100644 --- a/server/helpers/youtube-dl/youtube-dl-cli.ts +++ b/server/helpers/youtube-dl/youtube-dl-cli.ts @@ -153,7 +153,8 @@ export class YoutubeDLCLI { completeArgs = this.wrapWithIPOptions(completeArgs) completeArgs = this.wrapWithFFmpegOptions(completeArgs) - const output = await execa('python', [ youtubeDLBinaryPath, ...completeArgs, url ], processOptions) + const { PYTHON_PATH } = CONFIG.IMPORT.VIDEOS.HTTP.YOUTUBE_DL_RELEASE + const output = await execa(PYTHON_PATH, [ youtubeDLBinaryPath, ...completeArgs, url ], processOptions) logger.debug('Runned youtube-dl command.', { command: output.command, ...lTags() }) -- cgit v1.2.3