add ffmpeg check to test
This commit is contained in:
@ -288,6 +288,12 @@ func TestSubtitles(t *testing.T) {
|
|||||||
func TestDownloadSections(t *testing.T) {
|
func TestDownloadSections(t *testing.T) {
|
||||||
defer leakChecks(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(
|
ydlResult, ydlResultErr := goutubedl.New(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
"https://www.youtube.com/watch?v=OyuL5biOQ94",
|
"https://www.youtube.com/watch?v=OyuL5biOQ94",
|
||||||
|
Reference in New Issue
Block a user