/// <summary> /// Adds a torrent to uTorrent from a url /// </summary> /// <param name="Url">The url to download the .torrent file</param> public void AddTorrentFromUrl(string Url) { if (_token == null) { return; } try { ServiceClient.AddTorrentFromUrl(Url, _token); GetTorrentsAndLabels(true); } catch (System.ServiceModel.ProtocolException e) { // Token possibly expired, get new token. Trace.TraceError(e.Message + e.StackTrace); GetToken(); } }
/// <summary> /// Adds a torrent to uTorrent from a url /// </summary> /// <param name="Url">The url to download the .torrent file</param> public void AddTorrentFromUrl(string Url) { ServiceClient.AddTorrentFromUrl(Url, _token); GetTorrentsAndLabels(true); }