///////////////////////////////////////////////// // Parse and index a single feed private void IndexSingleFeed(string filename, bool initial_scan) { if (!filename.EndsWith(".xml")) { return; } if (ThisScheduler.ContainsByTag(filename)) { Log.Debug("Not adding task for already running task: {0}", filename); return; } FeedIndexableGenerator generator = new FeedIndexableGenerator(this, filename, initial_scan); Scheduler.Task task; task = NewAddTask(generator); task.Tag = filename; ThisScheduler.Add(task); }
///////////////////////////////////////////////// // Parse and index a single feed private void IndexSingleFeed (string filename, bool initial_scan) { if (! filename.EndsWith (".xml")) return; if (ThisScheduler.ContainsByTag (filename)) { Log.Debug ("Not adding task for already running task: {0}", filename); return; } FeedIndexableGenerator generator = new FeedIndexableGenerator (this, filename, initial_scan); Scheduler.Task task; task = NewAddTask (generator); task.Tag = filename; ThisScheduler.Add (task); }