add ffmpeg check to test

This commit is contained in:
ar2rworld
2023-09-01 16:28:03 -04:00
parent 89ddc38573
commit 36319b5e0f

View File

@ -288,6 +288,12 @@ func TestSubtitles(t *testing.T) {
func TestDownloadSections(t *testing.T) {
defer leakChecks(t)()
cmd := exec.Command("ffmpeg", "-version")
_, err := cmd.Output()
if err != nil {
t.Errorf("failed to check ffmpeg installed: %s", err)
}
ydlResult, ydlResultErr := goutubedl.New(
context.Background(),
"https://www.youtube.com/watch?v=OyuL5biOQ94",