user agent breaks it

This commit is contained in:
Mark Beamer Jr 2020-07-30 13:53:27 -04:00 committed by Alex Grintsvayg
parent cd11e82676
commit 4eba7200d8
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -254,7 +254,7 @@ func run(use string, args []string, withStdErr, withStdOut bool, stopChan stop.C
}
defer pool.ReleaseIP(sourceAddress)
argsForCommand := append(args, "--source-address", sourceAddress)
argsForCommand = append(args, "--user-agent", "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
//argsForCommand = append(args, "--user-agent", "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
cmd := exec.Command("youtube-dl", argsForCommand...)
logrus.Printf("Running command youtube-dl %s", strings.Join(argsForCommand, " "))