* 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
1 changed files with 4 additions and 1 deletions

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