public async Task <bool> DownloadTorrent(Filter filter, Torrent torrent) { if (await torrent.Download(TorrentDropDirectory)) { filter.HasDownloadedSinceHighest = true; LogDownload(filter, torrent); RefreshAllDownloads(); onPropertyChanged("LoadHighestEpisode"); onPropertyChanged("ResetFilter"); onPropertyChanged("FilterSelected"); if (filter.MatchOnce && !filter.IsTV) { filter.Enabled = false; } return(true); } else { if (filter.DownloadedTorrents.Contains(torrent)) { filter.DownloadedTorrents.Remove(torrent); } return(false); } }
public async void ExecuteManualDownload(object parameter) { Torrent t = SelectedTorrent; if (await t.Download(TorrentDropDirectory)) { ManuallyDownloadedTorrents.Add(t); RefreshAllDownloads(); } }
private void Download(Torrent torrent) { torrent.Download(); }
// Remove public void Download(DownloadWindow dw) { Torrent.status = true; Torrent.Download(dw, hash, name, extraction + destination); }
public void Download(DownloadWindow dw, string destination) { Torrent.status = true; Torrent.Download(dw, hash, name, destination); }
public void Download(string destination) { Torrent.status = true; Torrent.Download(hash, destination); }