remove trailing whitespace

This commit is contained in:
hawken
2019-01-07 23:27:46 +00:00
parent ba1794f64b
commit bd169e4fd4
290 changed files with 1708 additions and 1708 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenSubtitlesHandler.Console
/// <summary>
/// Write line to the console and raise the "LineWritten" event
/// </summary>
///
///
/// <param name="text">The debug line</param>
/// <param name="code">The status</param>
public static void WriteLine(string text, DebugCode code = DebugCode.None)

View File

@@ -37,22 +37,22 @@ namespace OpenSubtitlesHandler
private string _comments;
private string _url_linux;
/// <summary>
/// Latest application version
/// Latest application version
/// </summary>
[Description("Latest application version"), Category("AutoUpdate")]
public string version { get { return _version; } set { _version = value; } }
/// <summary>
/// Download URL for Windows version
/// Download URL for Windows version
/// </summary>
[Description("Download URL for Windows version"), Category("AutoUpdate")]
public string url_windows { get { return _url_windows; } set { _url_windows = value; } }
/// <summary>
/// Application changelog and other comments
/// Application changelog and other comments
/// </summary>
[Description("Application changelog and other comments"), Category("AutoUpdate")]
public string comments { get { return _comments; } set { _comments = value; } }
/// <summary>
/// Download URL for Linux version
/// Download URL for Linux version
/// </summary>
[Description("Download URL for Linux version"), Category("AutoUpdate")]
public string url_linux { get { return _url_linux; } set { _url_linux = value; } }

View File

@@ -36,7 +36,7 @@ namespace OpenSubtitlesHandler
private string title;
private string year;
private string coverLink;
private string duration;
private string tagline;
private string plot;

View File

@@ -49,12 +49,12 @@ namespace OpenSubtitlesHandler
private List<string> _last_update_strings = new List<string>();
/// <summary>
/// Version of server's XML-RPC API implementation
/// Version of server's XML-RPC API implementation
/// </summary>
[Description("Version of server's XML-RPC API implementation"), Category("OS")]
public string xmlrpc_version { get { return _xmlrpc_version; } set { _xmlrpc_version = value; } }
/// <summary>
/// XML-RPC interface URL
/// XML-RPC interface URL
/// </summary>
[Description("XML-RPC interface URL"), Category("OS")]
public string xmlrpc_url { get { return _xmlrpc_url; } set { _xmlrpc_url = value; } }
@@ -64,27 +64,27 @@ namespace OpenSubtitlesHandler
[Description("Server's application name and version"), Category("OS")]
public string application { get { return _application; } set { _application = value; } }
/// <summary>
/// Contact e-mail address for server related quuestions and problems
/// Contact e-mail address for server related quuestions and problems
/// </summary>
[Description("Contact e-mail address for server related quuestions and problems"), Category("OS")]
public string contact { get { return _contact; } set { _contact = value; } }
/// <summary>
/// Main server URL
/// Main server URL
/// </summary>
[Description("Main server URL"), Category("OS")]
public string website_url { get { return _website_url; } set { _website_url = value; } }
/// <summary>
/// Number of users currently online
/// Number of users currently online
/// </summary>
[Description("Number of users currently online"), Category("OS")]
public int users_online_total { get { return _users_online_total; } set { _users_online_total = value; } }
/// <summary>
/// Number of users currently online using a client application (XML-RPC API)
/// Number of users currently online using a client application (XML-RPC API)
/// </summary>
[Description("Number of users currently online using a client application (XML-RPC API)"), Category("OS")]
public int users_online_program { get { return _users_online_program; } set { _users_online_program = value; } }
/// <summary>
/// Number of currently logged-in users
/// Number of currently logged-in users
/// </summary>
[Description("Number of currently logged-in users"), Category("OS")]
public int users_loggedin { get { return _users_loggedin; } set { _users_loggedin = value; } }
@@ -104,7 +104,7 @@ namespace OpenSubtitlesHandler
[Description("Total number of subtitle downloads"), Category("OS")]
public string subs_downloads { get { return _subs_downloads; } set { _subs_downloads = value; } }
/// <summary>
/// Total number of subtitle files stored on the server
/// Total number of subtitle files stored on the server
/// </summary>
[Description("Total number of subtitle files stored on the server"), Category("OS")]
public string subs_subtitle_files { get { return _subs_subtitle_files; } set { _subs_subtitle_files = value; } }
@@ -119,7 +119,7 @@ namespace OpenSubtitlesHandler
[Description("Total number of movie A.K.A. titles in the database"), Category("OS")]
public string movies_aka { get { return _movies_aka; } set { _movies_aka = value; } }
/// <summary>
/// Total number of subtitle languages supported
/// Total number of subtitle languages supported
/// </summary>
[Description("Total number of subtitle languages supported"), Category("OS")]
public string total_subtitles_languages { get { return _total_subtitles_languages; } set { _total_subtitles_languages = value; } }

View File

@@ -132,17 +132,17 @@ namespace OpenSubtitlesHandler
{
switch (MEMBER.Name)
{
case "token":
re.Token = TOKEN = MEMBER.Data.Data.ToString();
OSHConsole.WriteLine(MEMBER.Name + "= " + MEMBER.Data.Data.ToString());
case "token":
re.Token = TOKEN = MEMBER.Data.Data.ToString();
OSHConsole.WriteLine(MEMBER.Name + "= " + MEMBER.Data.Data.ToString());
break;
case "seconds":
re.Seconds = double.Parse(MEMBER.Data.Data.ToString(), CultureInfo.InvariantCulture);
OSHConsole.WriteLine(MEMBER.Name + "= " + MEMBER.Data.Data.ToString());
OSHConsole.WriteLine(MEMBER.Name + "= " + MEMBER.Data.Data.ToString());
break;
case "status":
re.Status = MEMBER.Data.Data.ToString();
OSHConsole.WriteLine(MEMBER.Name + "= " + MEMBER.Data.Data.ToString());
case "status":
re.Status = MEMBER.Data.Data.ToString();
OSHConsole.WriteLine(MEMBER.Name + "= " + MEMBER.Data.Data.ToString());
break;
}
}
@@ -157,7 +157,7 @@ namespace OpenSubtitlesHandler
}
return new MethodResponseError("Fail", "Log in failed !");
}
/// <summary>
/// Log out from the server. Call this to terminate the session.
/// </summary>
@@ -203,7 +203,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "Log out failed !");
}
/// <summary>
/// keep-alive user's session, verify token/session validity
/// keep-alive user's session, verify token/session validity
/// </summary>
/// <returns>Status of the call operation</returns>
public static IMethodResponse NoOperation()
@@ -270,7 +270,7 @@ namespace OpenSubtitlesHandler
}
/*Search and download*/
/// <summary>
/// Search for subtitle files matching your videos using either video file hashes or IMDb IDs.
/// Search for subtitle files matching your videos using either video file hashes or IMDb IDs.
/// </summary>
/// <param name="parameters">List of search subtitle parameters which each one represents 'struct parameter' as descriped at http://trac.opensubtitles.org/projects/opensubtitles/wiki/XmlRpcSearchSubtitles </param>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseSubtitleSearch'</returns>
@@ -349,7 +349,7 @@ namespace OpenSubtitlesHandler
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -529,7 +529,7 @@ namespace OpenSubtitlesHandler
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -630,7 +630,7 @@ namespace OpenSubtitlesHandler
}
return new MethodResponseError("Fail", "Search Subtitles call failed !");
}
/// <summary>
/// Download subtitle file(s)
/// </summary>
@@ -672,7 +672,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -782,7 +782,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(httpResponse);
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -852,7 +852,7 @@ namespace OpenSubtitlesHandler
}
return new MethodResponseError("Fail", "DownloadSubtitles call failed !");
}
/// <summary>
/// Returns comments for subtitles
/// </summary>
@@ -890,7 +890,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -996,7 +996,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1029,7 +1029,7 @@ namespace OpenSubtitlesHandler
}
/*Movies*/
/// <summary>
/// Search for a movie (using movie title)
/// Search for a movie (using movie title)
/// </summary>
/// <param name="query">Movie title user is searching for, this is cleaned-up a bit (remove dvdrip, etc.) before searching </param>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseSubtitleSearch'</returns>
@@ -1053,7 +1053,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1120,7 +1120,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "SearchMoviesOnIMDB call failed !");
}
/// <summary>
/// Get movie details for given IMDb ID
/// Get movie details for given IMDb ID
/// </summary>
/// <param name="imdbid">http://www.imdb.com/</param>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseMovieDetails'</returns>
@@ -1144,7 +1144,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1288,7 +1288,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "GetIMDBMovieDetails call failed !");
}
/// <summary>
/// Allows registered users to insert new movies (not stored in IMDb) to the database.
/// Allows registered users to insert new movies (not stored in IMDb) to the database.
/// </summary>
/// <param name="movieName">Movie title </param>
/// <param name="movieyear">Release year </param>
@@ -1316,7 +1316,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1390,7 +1390,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1458,7 +1458,7 @@ namespace OpenSubtitlesHandler
}
/*Reporting and rating*/
/// <summary>
/// Get basic server information and statistics
/// Get basic server information and statistics
/// </summary>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseServerInfo'</returns>
public static IMethodResponse ServerInfo()
@@ -1479,7 +1479,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1609,7 +1609,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1647,9 +1647,9 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "ReportWrongMovieHash call failed !");
}
/// <summary>
/// This method is needed to report bad movie hash for imdbid. This method should be used for correcting wrong entries,
/// when using CheckMovieHash2. Pass moviehash and moviebytesize for file, and imdbid as new, corrected one IMDBID
/// (id number without trailing zeroes). After some reports, moviehash will be linked to new imdbid.
/// This method is needed to report bad movie hash for imdbid. This method should be used for correcting wrong entries,
/// when using CheckMovieHash2. Pass moviehash and moviebytesize for file, and imdbid as new, corrected one IMDBID
/// (id number without trailing zeroes). After some reports, moviehash will be linked to new imdbid.
/// </summary>
/// <param name="moviehash">The movie hash</param>
/// <param name="moviebytesize">The movie size in bytes</param>
@@ -1677,7 +1677,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1709,7 +1709,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "ReportWrongImdbMovie call failed !");
}
/// <summary>
/// Rate subtitles
/// Rate subtitles
/// </summary>
/// <param name="idsubtitle">Id of subtitle (NOT subtitle file) user wants to rate </param>
/// <param name="score">Subtitle rating, must be in interval 1 (worst) to 10 (best). </param>
@@ -1735,7 +1735,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1780,7 +1780,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "SubtitlesVote call failed !");
}
/// <summary>
/// Add comment to a subtitle
/// Add comment to a subtitle
/// </summary>
/// <param name="idsubtitle">Subtitle identifier (BEWARE! this is not the ID of subtitle file but of the whole subtitle (a subtitle can contain multiple subtitle files))</param>
/// <param name="comment">User's comment</param>
@@ -1808,7 +1808,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1868,7 +1868,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1933,7 +1933,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -1993,7 +1993,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "GetSubLanguages call failed !");
}
/// <summary>
/// Detect language for given strings
/// Detect language for given strings
/// </summary>
/// <param name="texts">Array of strings you want language detected for</param>
/// <param name="encodingUsed">The encoding that will be used to get buffer of given strings. (this is not OS official parameter)</param>
@@ -2029,7 +2029,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2102,7 +2102,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2161,7 +2161,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "GetAvailableTranslations call failed !");
}
/// <summary>
/// Get a translation for given program and language
/// Get a translation for given program and language
/// </summary>
/// <param name="iso639">language ISO639-1 2-letter code </param>
/// <param name="format">available formats: [gnugettext compatible: mo, po] and [additional: txt, xml]</param>
@@ -2188,7 +2188,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2221,7 +2221,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "GetTranslation call failed !");
}
/// <summary>
/// Check for the latest version of given application
/// Check for the latest version of given application
/// </summary>
/// <param name="program">name of the program/client application you want to check. (Currently supported values: subdownloader, oscar)</param>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseAutoUpdate'</returns>
@@ -2244,7 +2244,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2303,7 +2303,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2357,7 +2357,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "CheckMovieHash call failed !");
}
/// <summary>
/// Check if video file hashes are already stored in the database. This method returns matching !MovieImdbID, MovieName, MovieYear, SeriesSeason, SeriesEpisode,
/// Check if video file hashes are already stored in the database. This method returns matching !MovieImdbID, MovieName, MovieYear, SeriesSeason, SeriesEpisode,
/// MovieKind if available for each $moviehash, always sorted by SeenCount DESC.
/// </summary>
/// <param name="hashes">Array of video file hashes</param>
@@ -2380,7 +2380,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2444,7 +2444,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "CheckMovieHash2 call failed !");
}
/// <summary>
/// Check if given subtitle files are already stored in the database
/// Check if given subtitle files are already stored in the database
/// </summary>
/// <param name="hashes">Array of subtitle file hashes (MD5 hashes of subtitle file contents) </param>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseCheckSubHash'</returns>
@@ -2466,7 +2466,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2511,7 +2511,7 @@ namespace OpenSubtitlesHandler
}
/*Upload*/
/// <summary>
/// Try to upload subtitles, perform pre-upload checking (i.e. check if subtitles already exist on server)
/// Try to upload subtitles, perform pre-upload checking (i.e. check if subtitles already exist on server)
/// </summary>
/// <param name="subs">The subtitle parameters collection to try to upload</param>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseTryUploadSubtitles'</returns>
@@ -2551,7 +2551,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{
@@ -2643,7 +2643,7 @@ namespace OpenSubtitlesHandler
return new MethodResponseError("Fail", "TryUploadSubtitles call failed !");
}
/// <summary>
/// Upload given subtitles to OSDb server
/// Upload given subtitles to OSDb server
/// </summary>
/// <param name="info">The pamaters of upload method</param>
/// <returns>Status of the call operation. If the call success the response will be 'MethodResponseUploadSubtitles'</returns>
@@ -2664,7 +2664,7 @@ namespace OpenSubtitlesHandler
XmlRpcStructMember member = new XmlRpcStructMember("baseinfo", null);
XmlRpcValueStruct memberStruct = new XmlRpcValueStruct(new List<XmlRpcStructMember>());
memberStruct.Members.Add(new XmlRpcStructMember("idmovieimdb", new XmlRpcValueBasic(info.idmovieimdb)));
memberStruct.Members.Add(new XmlRpcStructMember("sublanguageid", new XmlRpcValueBasic(info.sublanguageid)));
memberStruct.Members.Add(new XmlRpcStructMember("sublanguageid", new XmlRpcValueBasic(info.sublanguageid)));
memberStruct.Members.Add(new XmlRpcStructMember("moviereleasename", new XmlRpcValueBasic(info.moviereleasename)));
memberStruct.Members.Add(new XmlRpcStructMember("movieaka", new XmlRpcValueBasic(info.movieaka)));
memberStruct.Members.Add(new XmlRpcStructMember("subauthorcomment", new XmlRpcValueBasic(info.subauthorcomment)));
@@ -2704,7 +2704,7 @@ namespace OpenSubtitlesHandler
string response = Utilities.GetStreamString(Utilities.SendRequest(XmlRpcGenerator.Generate(call), XML_PRC_USERAGENT));
if (!response.Contains("ERROR:"))
{
// No error occur, get and decode the response.
// No error occur, get and decode the response.
XmlRpcMethodCall[] calls = XmlRpcGenerator.DecodeMethodResponse(response);
if (calls.Length > 0)
{

View File

@@ -1,7 +1,7 @@
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OpenSubtitlesHandler")]
@@ -13,8 +13,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -24,11 +24,11 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]

View File

@@ -68,7 +68,7 @@ namespace OpenSubtitlesHandler
/// </summary>
public string MovieHash { get { return movieHash; } set { movieHash = value; } }
/// <summary>
/// Size of video file in bytes
/// Size of video file in bytes
/// </summary>
public long MovieByteSize { get { return movieByteSize; } set { movieByteSize = value; } }
/// <summary>

View File

@@ -250,7 +250,7 @@ namespace XmlRpcHandler
}
return reader.ReadContentAsString();
}
private static IXmlRpcValue ReadValue(XmlReader xmlReader, bool skipRead = false)
{
while (skipRead || xmlReader.Read())