diff --git a/extractors/youtube/youtube.go b/extractors/youtube/youtube.go index 019a536f6..c77fb5511 100644 --- a/extractors/youtube/youtube.go +++ b/extractors/youtube/youtube.go @@ -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 } diff --git a/utils/utils.go b/utils/utils.go index 872f5b186..cf37a3b6f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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