diff --git a/ytdl/version.go b/ytdl/version.go index 71ac6ab..cd42289 100644 --- a/ytdl/version.go +++ b/ytdl/version.go @@ -5,6 +5,8 @@ import ( "os/exec" "strings" "sync" + + "github.com/spf13/viper" ) var ( @@ -16,7 +18,7 @@ func GetVersion() string { var err error versionOnce.Do(func() { cmd := exec.Command( - "yt-dlp", + viper.GetString("ytdlp_path"), "--version", )