示例#1
0
        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);
            }
        }
示例#2
0
        public async void ExecuteManualDownload(object parameter)
        {
            Torrent t = SelectedTorrent;

            if (await t.Download(TorrentDropDirectory))
            {
                ManuallyDownloadedTorrents.Add(t);

                RefreshAllDownloads();
            }
        }
示例#3
0
 private void Download(Torrent torrent)
 {
    torrent.Download();
 }
示例#4
0
 // Remove
 public void Download(DownloadWindow dw)
 {
     Torrent.status = true;
     Torrent.Download(dw, hash, name, extraction + destination);
 }
示例#5
0
 public void Download(DownloadWindow dw, string destination)
 {
     Torrent.status = true;
     Torrent.Download(dw, hash, name, destination);
 }
示例#6
0
 public void Download(string destination)
 {
     Torrent.status = true;
     Torrent.Download(hash, destination);
 }