Code: Select all
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.ShowDialog();
string fileName = openFileDialog1.FileName;
IOSDb os = XmlRpcProxyGen.Create<IOSDb>();
os.Url = "http://www.opensubtitles.org/xml-rpc";
string token = os.LogIn("", "", "en", "")["token"].ToString();
string[] sa = {
"en",
ComputeMovieHash(fileName),
new FileInfo(fileName).Length.ToString()
};
string[][] se = {sa};
string thisIsAlwaysFalse = os.SearchSubtitles(token, se)["data"].ToString();
thisIsAlwaysFalse = thisIsAlwaysFalse + "";
}