public WebUIAPI(Config config)
{
this.Config = config;
this.Torrents = new TorrentListing();
this.Timer = new Timer();
this.Cookies = new CookieContainer();
this.Timer.Tick += new EventHandler(Timer_Tick);
this.Timer.Interval = 5000;
}