From e9c24efc42a13618f8825d597bcbc04f6eb0b42e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 29 Jun 2018 02:13:32 +0700 Subject: [PATCH] User-Agent: FileBot/4.8.2 (PKG; Mac OS X 10.13.5; x86_64) Java/10.0.1 --- source/net/filebot/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index d728692e..1e4b97d3 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -6,6 +6,7 @@ import static net.filebot.Logging.*; import static net.filebot.MediaTypes.*; import static net.filebot.Settings.*; import static net.filebot.util.FileUtilities.*; +import static net.filebot.util.FileUtilities.getChildren; import static net.filebot.util.XPathUtilities.*; import static net.filebot.util.ui.SwingUI.*; @@ -377,7 +378,7 @@ public class Main { } public static void initializeSystemProperties(ArgumentBean args) { - System.setProperty("http.agent", String.format("%s %s", getApplicationName(), getApplicationVersion())); + 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("sun.net.client.defaultConnectTimeout", "10000"); System.setProperty("sun.net.client.defaultReadTimeout", "60000");