Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

fix: failed to download video in some cases

沈浩f03af146282c
diff --git a/internal/service/link2file.go b/internal/service/link2file.go
index 1e40f4bb..30fb1d5a 100644
--- a/internal/service/link2file.go
+++ b/internal/service/link2file.go
@@ -87,7 +87,7 @@ func (s Service) linkToFile(ctx context.Context, stepParam *types.SubtitleTaskSt
if config.Conf.App.Proxy != "" {
cmdArgs = append(cmdArgs, "--proxy", config.Conf.App.Proxy)
}
- if storage.FfmpegPath != "" {
+ if storage.FfmpegPath != "ffmpeg" {
cmdArgs = append(cmdArgs, "--ffmpeg-location", storage.FfmpegPath)
}
cmd := exec.Command(storage.YtdlpPath, cmdArgs...)