Add viper get in ytdlp version retrieving
This commit is contained in:
parent
20a9e6d01a
commit
224fbced27
|
@ -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",
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue