From 4eba7200d80a65a738421e5f15787667c64a2eff Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Thu, 30 Jul 2020 13:53:27 -0400 Subject: [PATCH] user agent breaks it --- downloader/downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader/downloader.go b/downloader/downloader.go index 7431118..56872bc 100644 --- a/downloader/downloader.go +++ b/downloader/downloader.go @@ -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, " "))