public void AddFeed(string feedurl, string source) { feedurl = Utils.MaybeChangeWebcalToHttp(feedurl); if (feeds.ContainsKey(feedurl)) { GenUtils.LogMsg("warning", "FeedRegistry.AddFeed", "duplicate feed: " + feedurl + "(" + source + ")"); return; } source = source.Replace("\"", ""); feeds[feedurl] = source; var fs = new IcalStats(); fs.source = source; fs.loaded = 0; fs.valid = false; fs.score = "0"; fs.singlecount = 0; fs.recurringcount = 0; fs.recurringinstancecount = 0; fs.dday_error = ""; fs.prodid = null; stats.TryAdd(feedurl, fs); }