Skip to content

add utorrent 3.6.0 #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions HISTORY.TXT
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---=== 0.44 (04-07-2025) ===---
- Global: The program is now open source and the source is available in https://github.com/NikolayIT/RatioMaster.NET
- Global: Program built for .NET Framework version 4.0
- Global: Program information, links and about form updated
- RM: Added new client emulation: "uTorrent 3.6.0"
---=== 0.43 (08-01-2016) ===---
- Global: The program is now open source and the source is available in https://github.com/NikolayIT/RatioMaster.NET
- Global: Program built for .NET Framework version 4.0
Expand Down
5 changes: 3 additions & 2 deletions Source/RatioMaster/RM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal partial class RM : UserControl
private int remWork = 0;
internal string DefaultDirectory = "";
private const string DefaultClient = "uTorrent";
private const string DefaultClientVersion = "3.3.2";
private const string DefaultClientVersion = "3.6.0";

// internal delegate SocketEx createSocketCallback();
internal delegate void SetTextCallback(string logLine);
Expand Down Expand Up @@ -410,6 +410,7 @@ internal void cmbClient_SelectedIndexChanged(object sender, EventArgs e)

case "uTorrent":
{
cmbVersion.Items.Add("3.6.0");
cmbVersion.Items.Add("3.3.2");
cmbVersion.Items.Add("3.3.0");
cmbVersion.Items.Add("3.2.0");
Expand All @@ -422,7 +423,7 @@ internal void cmbClient_SelectedIndexChanged(object sender, EventArgs e)
cmbVersion.Items.Add("1.7.5");
cmbVersion.Items.Add("1.6.1");
cmbVersion.Items.Add("1.6");
cmbVersion.SelectedItem = "3.3.2";
cmbVersion.SelectedItem = "3.6.0";
if (customPeersNum.Text == "0" || customPeersNum.Text == "") customPeersNum.Text = "200";
break;
}
Expand Down
20 changes: 19 additions & 1 deletion Source/RatioMaster/TorrentClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,24 @@ public static TorrentClient GetClient(string name)
}
#endregion
#region uTorrent
case "uTorrent 3.6.0":
{
client.Name = "uTorrent 3.6.0";
client.HttpProtocol = "HTTP/1.1";
client.HashUpperCase = false;
client.Key = GenerateIdString("hex", 8, false, true);
client.Headers = "Host: {host}\r\nUser-Agent: uTorrent/3320\r\nAccept-Encoding: gzip\r\n";
client.PeerID = "-UT3320-%18w" + GenerateIdString("random", 10, true, false);
client.Query = "info_hash={infohash}&peer_id={peerid}&port={port}&uploaded={uploaded}&downloaded={downloaded}&left={left}&corrupt=0&key={key}{event}&numwant={numwant}&compact=1&no_peer_id=1";
client.DefNumWant = 200;
client.Parse = true;
client.SearchString = "&peer_id=-UT3320-";
client.ProcessName = "uTorrent";
client.StartOffset = 0;
client.MaxOffset = 200000000;
break;
}

case "uTorrent 3.3.2":
{
client.Name = "uTorrent 3.3.2";
Expand Down Expand Up @@ -721,7 +739,7 @@ public static TorrentClient GetClient(string name)
#endregion
default:
{
client.Name = "uTorrent 3.3.2";
client.Name = "uTorrent 3.6.0";
client.HttpProtocol = "HTTP/1.1";
client.HashUpperCase = false;
client.Key = GenerateIdString("hex", 8, false, true);
Expand Down
6 changes: 3 additions & 3 deletions Source/RatioMaster/VersionChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace RatioMaster_source

public class VersionChecker
{
public const string LocalVersion = "0430";
public const string PublicVersion = "0.43";
public const string ReleaseDate = "08-01-2016";
public const string LocalVersion = "0440";
public const string PublicVersion = "0.44";
public const string ReleaseDate = "04-07-2025";
private const string ProgramPageVersion = "http://ratiomaster.net/vc.php?v=";

private readonly string userAgent;
Expand Down
6 changes: 6 additions & 0 deletions Website/history.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
require_once("news.php");
?>
<td valign="top"> <h1>Program changelog:</h1>
<p><b>---=== 0.44 (04-07-2025) ===---</b><br>
- Global: The program is now open source and the source is available in <a href="https://github.com/NikolayIT/RatioMaster.NET">https://github.com/NikolayIT/RatioMaster.NET</a><br>
- Global: Program built for .NET Framework version 4.0<br>
- Global: Program information, links and about form updated<br>
- RM: Added new client emulation: "uTorrent 3.6.0"<br>
- RM: Default client is now "uTorrent 3.6.0"<br></p>
<p><b>---=== 0.43 (08-01-2016) ===---</b><br>
- Global: The program is now open source and the source is available in <a href="https://github.com/NikolayIT/RatioMaster.NET">https://github.com/NikolayIT/RatioMaster.NET</a><br>
- Global: Program built for .NET Framework version 4.0<br>
Expand Down