latop2604 / T411ClientApi

T411Client Api is a simple .Net client for the french torrent tracker t411 web api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

T411ClientApi

T411Client Api is a simple .Net client for the french torrent tracker t411 web api.

Build status

Download T411Client Api from CodePlex or install using NuGet

Nuget page

Get started

Download the first .torrent file from TopMonth list

T411Client client = new T411Client("username", "password");
var torrents = client.GetTopMonth();

var torrent = torrents.First();
var torrentDetails = client.GetTorrentDetails(torrent.Id);
using (var ms = client.DownloadTorrent(torrentDetails.Id))
using (var fs = new FileStream("plop.torrent", FileMode.Create))
{
    ms.CopyTo(fs);
}

Use Html parser instead of classic api

// register parser implementation
T411.Html.DependencyResolver.Register<T411.Html.IT411HtmlParser>(() => new T411.HtmlParser.T411HtmlParser());

var client = new T411.Html.T411Client("username", "password");

About

T411Client Api is a simple .Net client for the french torrent tracker t411 web api.


Languages

Language:C# 100.0%