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

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
*/