From b1c26a3aa49cd478ae230c1694ef57694e7501cf Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 29 Jun 2018 17:23:31 +0700 Subject: [PATCH] Use simple UA header --- source/net/filebot/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index 1e4b97d3..9e4f5b78 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -84,7 +84,7 @@ public class Main { if (args.clearCache()) { // clear cache must be called manually if (System.console() == null) { - log.severe("`filebot -clear-cache` has been disabled due to abuse."); + log.severe("`filebot -clear-cache` must be called from an interactive console."); System.exit(1); } @@ -378,7 +378,7 @@ public class Main { } public static void initializeSystemProperties(ArgumentBean args) { - System.setProperty("http.agent", String.format("%s/%s (%s; %s %s; %s)", getApplicationName(), getApplicationVersion(), getApplicationDeployment().toUpperCase(), System.getProperty("os.name"), System.getProperty("os.version"), System.getProperty("os.arch"))); + System.setProperty("http.agent", String.format("%s/%s", getApplicationName(), getApplicationVersion())); System.setProperty("sun.net.client.defaultConnectTimeout", "10000"); System.setProperty("sun.net.client.defaultReadTimeout", "60000");