1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* support for checking ServerInfo and client download limits

This commit is contained in:
Reinhard Pointner 2014-01-02 06:45:28 +00:00
parent 9f568625fb
commit 826f42eb51

View File

@ -430,6 +430,17 @@ public class OpenSubtitlesClient implements SubtitleProvider, VideoHashSubtitleS
}
};
public Map<?, ?> getServerInfo() throws Exception {
// require login
login();
return xmlrpc.getServerInfo();
}
public Map<?, ?> getDownloadLimits() throws Exception {
return (Map<?, ?>) getServerInfo().get("download_limits");
}
/**
* SubLanguageID by English language name
*/