NikolayIT / RatioMaster.NET

Ratiomaster.NET is a small standalone application which fakes upload and download stats of a torrent to almost all bittorrent trackers. This means that it does NOT rely on your bittorrent client (uTorrent, Azureus, BitComet, ABC and etc.) and it will NOT download/upload the files on a torrent - it only can fake download/upload. RatioMaster.NET has hardcoded emulations for the most commonly used BitTorrent clients: uTorrent, BitComet, Azureus, ABC, BitLord, BTuga, BitTornado, Burst, BitTyrant, BitSpirit.
http://ratiomaster.net
MIT License
335 stars 63 forks source link

Add Transmission client #12

Closed vlotho closed 8 years ago

vlotho commented 9 years ago

hi, this possible to Add Transmission client for windows & linux system ?

vlotho commented 9 years ago

i added this line into the TorrentClientFactory.cs file :

  #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_nl_Host: {host}_nl_Accept: */*_nl_Accept-Encoding: gzip;q=1.0, deflate, identity_nl_";
                    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

I took as a model the customer file "transmission 1.50" of rm 1.9.2

NikolayIT commented 9 years ago

Could you please create a pull request?

vlotho commented 9 years ago

sorry, it's late at home and I found a little long process for a file modification. I do not have much time to get interested in github currently.