Skip to content

Commit

Permalink
Merge pull request #14 from LordMrcS/master
Browse files Browse the repository at this point in the history
Update TorrentClientFactory.cs
  • Loading branch information
NikolayIT committed Jan 4, 2016
2 parents d9b1566 + 0b4a0ee commit b9fcaff
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/RM.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Source/RM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@ internal void cmbClient_SelectedIndexChanged(object sender, EventArgs e)
if (customPeersNum.Text == "0" || customPeersNum.Text == "") customPeersNum.Text = "200";
break;
}
case "Transmission":
{
cmbVersion.Items.Add("2.82 (14160)");
cmbVersion.SelectedItem = "2.82 (14160)";
if (customPeersNum.Text == "0" || customPeersNum.Text == "") customPeersNum.Text = "200";
break;
}
case "BitLord":
{
cmbVersion.Items.Add("1.1");
Expand Down
19 changes: 19 additions & 0 deletions Source/TorrentClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,25 @@ public static TorrentClient GetClient(string name)
break;
}
#endregion
#region Transmission
case "Transmission 2.82 (14160)":
{
client.Name = "Transmission 2.82 (14160)";
client.HttpProtocol = "HTTP/1.1";
client.HashUpperCase = false;
client.Key = GenerateIdString("hex", 8, false, true);
client.Headers = "User-Agent: Transmission/2.82\r\nHost: {host}\r\nAccept: */*\r\nAccept-Encoding: gzip;q=1.0, deflate, identity\r\n";
client.PeerID = "-TR2500-" + GenerateIdString("alphanumeric", 12, false, false);
client.Query = "info_hash={infohash}&peer_id={peerid}&port={port}&uploaded={uploaded}&downloaded={downloaded}&left={left}&numwant={numwant}&key={key}&compact=1&supportcrypto=1{event}";
client.DefNumWant = 80;
// client.Parse = true;
client.SearchString = "&peer_id=-TR2500-";
client.ProcessName = "Transmission";
// client.StartOffset = 0;
// client.MaxOffset = 200000000;
break;
}
#endregion
#region ABC
case "ABC 3.1":
{
Expand Down

0 comments on commit b9fcaff

Please sign in to comment.