Example #1
0
 public void RestoreWatchers()
 {
     foreach (string feed in feeds)
     {
         TorrentRssWatcher watcher = new TorrentRssWatcher(feed);
         watcher.TorrentFound += OnTorrentMatched;
         watchers.Add(feed, watcher);
     }
 }
		public bool AddWatcher(string url)
		{
			if(watchers.ContainsKey(url))
				return false;
			
			TorrentRssWatcher watcher = new TorrentRssWatcher(url);
			feeds.Add(url);
			watcher.TorrentFound += OnTorrentMatched;
			watchers.Add(url, watcher);
			watcher.StartWatching();
			return true;
		}
Example #3
0
        public bool AddWatcher(string url)
        {
            if (watchers.ContainsKey(url))
            {
                return(false);
            }

            TorrentRssWatcher watcher = new TorrentRssWatcher(url);

            feeds.Add(url);
            watcher.TorrentFound += OnTorrentMatched;
            watchers.Add(url, watcher);
            watcher.StartWatching();
            return(true);
        }
		public void RestoreWatchers()
		{
			foreach(string feed in feeds){
				TorrentRssWatcher watcher = new TorrentRssWatcher(feed);
            			watcher.TorrentFound += OnTorrentMatched;
            			watchers.Add(feed, watcher);
            		}
			
		}