Created
February 19, 2013 13:12
-
-
Save stavrossk/4985733 to your computer and use it in GitHub Desktop.
OpenSubtitles.org XMLRPC interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CookComputing.XmlRpc; | |
// ReSharper disable CheckNamespace | |
namespace VideoSubtitleDownloader | |
// ReSharper restore CheckNamespace | |
{ | |
public struct LoginResult | |
{ | |
[XmlRpcMissingMapping(MappingAction.Ignore)] | |
public string Token; | |
public string Status; | |
[XmlRpcMissingMapping(MappingAction.Ignore)] | |
public double Seconds; | |
} | |
public struct SearchParams | |
{ | |
public string Sublanguageid; | |
//public string moviehash; | |
//public double moviesize; | |
public string Imdbid; | |
} | |
public interface IOpenSubtitlesRemoteFunctions : IXmlRpcProxy | |
{ | |
[XmlRpcMethod("LogIn")] | |
LoginResult LogIn(string username, string password, | |
string language, string useragent); | |
[XmlRpcMethod("ServerInfo")] | |
XmlRpcStruct ServerInfo(); | |
[XmlRpcMethod("CheckMovieHash")] | |
XmlRpcStruct CheckMovieHash(string moviehash); | |
[XmlRpcMethod("CheckMovieHash2")] | |
XmlRpcStruct CheckMovieHash2(string moviehash); | |
[XmlRpcMethod("GetIMDBMovieDetails")] | |
XmlRpcStruct GetImdbMovieDetails(string token, string imdbid); | |
[XmlRpcMethod("SearchSubtitles")] | |
XmlRpcStruct SearchSubtitles(string token, SearchParams[] ms); | |
[XmlRpcMethod("CheckMovieHash")] | |
XmlRpcStruct CheckMovieHash(string token, string[] moviehash); | |
//[XmlRpcMethod("InsertMovieHash")] | |
//XmlRpcStruct InsertMovieHash(string token, HashUploadParams[] uploadParams); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment