1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

* allow users to set OpenSubtitles XML-RPC endpoint via Java system property: "-Dnet.filebot.OpenSubtitlesXmlRpc.url=http://api.opensubtitles.org/xml-rpc"

This commit is contained in:
Reinhard Pointner 2015-08-18 23:23:56 +00:00
parent 6c9ea69487
commit 6484e4b3f7

View File

@ -363,7 +363,7 @@ public class OpenSubtitlesXmlRpc {
protected URL getXmlRpcUrl() {
try {
return new URL("https://api.opensubtitles.org/xml-rpc");
return new URL(System.getProperty("net.filebot.OpenSubtitlesXmlRpc.url", "https://api.opensubtitles.org/xml-rpc"));
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}