Esempio n. 1
0
        private void OnTorrentMatched(object sender, TorrentRssWatcherEventArgs args)
        {
            Console.Out.WriteLine("Found torrent: " + args.Item.Title + " Matched filter: " + args.Filter.Name);

            foreach (RssItem item in history)
            {
                if (item.Link == args.Item.Link)
                {
                    logger.Debug("Torrent already previously downloaded - " + item.Title);
                    return;
                }
            }

            AddTorrent(args.Item, args.Filter);
        }
		private void OnTorrentMatched(object sender, TorrentRssWatcherEventArgs args)
		{
			Console.Out.WriteLine("Found torrent: " + args.Item.Title + " Matched filter: " + args.Filter.Name);
		
			foreach (RssItem item in history) {
				if(item.Link == args.Item.Link){
					logger.Debug("Torrent already previously downloaded - " + item.Title);
					return;
				}
			}
			
			AddTorrent(args.Item, args.Filter);
		}