mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-25 17:28:51 -05:00
* support for checking ServerInfo and client download limits
This commit is contained in:
parent
9f568625fb
commit
826f42eb51
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user