mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-04 08:25:03 -05:00
* customize filebot user agent so it doesn't get blocked
This commit is contained in:
parent
75322276a9
commit
8da694d0f6
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user