1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-10-31 15:35:06 -04:00

User-Agent: FileBot/4.8.2 (PKG; Mac OS X 10.13.5; x86_64) Java/10.0.1

This commit is contained in:
Reinhard Pointner 2018-06-29 02:13:32 +07:00
parent 5fbe642d8e
commit e9c24efc42

View File

@ -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");