Skip to content

Commit

Permalink
fix: cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Davincible authored and corny committed May 4, 2023
1 parent 02e0fbd commit 3509e5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/youtubedr/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import (
"strconv"
"time"

"github.com/kkdai/youtube/v2"
ytdl "github.com/kkdai/youtube/v2/downloader"
"github.com/spf13/pflag"
"golang.org/x/net/http/httpproxy"

"github.com/kkdai/youtube/v2"
ytdl "github.com/kkdai/youtube/v2/downloader"
)

var (
Expand Down Expand Up @@ -94,7 +95,7 @@ func getVideoWithFormat(id string) (*youtube.Video, *youtube.Format, error) {
}

case outputQuality != "":
format = formats.WithAudioChannels().FindByQuality(outputQuality)
format = formats.FindByQuality(outputQuality)
if format == nil {
return nil, nil, fmt.Errorf("unable to find format with quality %s", outputQuality)
}
Expand Down
1 change: 1 addition & 0 deletions fetch_testdata_helper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build fetch
// +build fetch

package youtube
Expand Down

0 comments on commit 3509e5f

Please sign in to comment.