From 224fbced277c03317d20447c79cdd52b1de8a472 Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Thu, 27 Apr 2023 13:42:46 -0400 Subject: [PATCH] Add viper get in ytdlp version retrieving --- ytdl/version.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", )