1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* customize filebot user agent so it doesn't get blocked

This commit is contained in:
Reinhard Pointner 2013-02-06 14:09:35 +00:00
parent 75322276a9
commit 8da694d0f6

View File

@ -111,7 +111,10 @@ public class Main {
CacheManager.getInstance().clearAll();
}
// set unixfs system property
// update system properties
if (System.getProperty("http.agent") == null) {
System.setProperty("http.agent", String.format("%s %s", getApplicationName(), getApplicationVersion()));
}
if (args.unixfs) {
System.setProperty("unixfs", "true");
}