Remove extraenous line
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
66c65694ae
commit
12e6e73976
|
@ -96,7 +96,6 @@ func (s *audioGetterState) getAudio(ctx context.Context, r io.ReadCloser, mediaS
|
||||||
|
|
||||||
var stdErr bytes.Buffer
|
var stdErr bytes.Buffer
|
||||||
cmd := s.commandFunc(ctx, "ffmpeg", "-hide_banner", "-loglevel", "error", "-i", "-", "-f", rawAudioFormat, "-ar", strconv.Itoa(rawAudioSampleRate), "-acodec", rawAudioCodec, "-")
|
cmd := s.commandFunc(ctx, "ffmpeg", "-hide_banner", "-loglevel", "error", "-i", "-", "-f", rawAudioFormat, "-ar", strconv.Itoa(rawAudioSampleRate), "-acodec", rawAudioCodec, "-")
|
||||||
fmt.Println("cmd is", cmd, cmd.Env)
|
|
||||||
cmd.Stdin = teeReader
|
cmd.Stdin = teeReader
|
||||||
cmd.Stderr = &stdErr
|
cmd.Stderr = &stdErr
|
||||||
stdout, err := cmd.StdoutPipe()
|
stdout, err := cmd.StdoutPipe()
|
||||||
|
|
|
@ -71,6 +71,7 @@ func TestGetAudioFromYoutube(t *testing.T) {
|
||||||
invalidMediaSet.AudioChannels = 0
|
invalidMediaSet.AudioChannels = 0
|
||||||
var mockStore mocks.Store
|
var mockStore mocks.Store
|
||||||
mockStore.On("GetMediaSet", mock.Anything, mediaSetID).Return(invalidMediaSet, nil)
|
mockStore.On("GetMediaSet", mock.Anything, mediaSetID).Return(invalidMediaSet, nil)
|
||||||
|
|
||||||
var youtubeClient mocks.YoutubeClient
|
var youtubeClient mocks.YoutubeClient
|
||||||
youtubeClient.On("GetVideoContext", ctx, mediaSet.YoutubeID).Return(video, nil)
|
youtubeClient.On("GetVideoContext", ctx, mediaSet.YoutubeID).Return(video, nil)
|
||||||
youtubeClient.On("GetStreamContext", ctx, video, &video.Formats[0]).Return(nil, int64(0), nil)
|
youtubeClient.On("GetStreamContext", ctx, video, &video.Formats[0]).Return(nil, int64(0), nil)
|
||||||
|
|
Loading…
Reference in New Issue