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: exec ytdlp no command error

沈浩a95b5cb4e32e
diff --git a/pkg/util/base.go b/pkg/util/base.go
index 7bf5bc37..cf87eed1 100644
--- a/pkg/util/base.go
+++ b/pkg/util/base.go
@@ -233,7 +233,7 @@ func CheckAndDownloadFfprobe() error {
// 先前下载过的
if _, err = os.Stat(ffprobeBinFilePath); err == nil {
log.GetLogger().Info("已找到ffprobe")
- storage.FfmpegPath = ffprobeBinFilePath
+ storage.FfprobePath = ffprobeBinFilePath
return nil
}
@@ -301,7 +301,7 @@ func CheckAndDownloadYtDlp() error {
// 先前下载过的
if _, err = os.Stat(ytdlpBinFilePath); err == nil {
log.GetLogger().Info("已找到ytdlp")
- storage.FfmpegPath = ytdlpBinFilePath
+ storage.YtdlpPath = ytdlpBinFilePath
return nil
}