Skip to content

Commit

Permalink
utils: ShouldExtract
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed Apr 4, 2018
1 parent 69174c5 commit 4d8e1c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extractors/youtube/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func extractVideoURLS(streams []string, referer, assest string) map[string]downl
stream, _ := url.ParseQuery(s)
itag := stream.Get("itag")

if !utils.NeedExtract(itag, bestQualityItag) {
if !utils.ShouldExtract(itag, bestQualityItag) {
continue
}

Expand Down
4 changes: 2 additions & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func PrintVersion() {
)
}

// NeedExtract returns true, if we need to extract this format
func NeedExtract(format, bestQuality string) bool {
// ShouldExtract returns true, if we need to extract this format
func ShouldExtract(format, bestQuality string) bool {
extractAll := config.InfoOnly || config.ExtractedData
if extractAll {
return true
Expand Down

0 comments on commit 4d8e1c5

Please sign in to comment.