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); } }