public void WordPress_feed_test() { var uc = new FeedChecker(); var chapters = uc.Check("https://mystiquetranslations.wordpress.com/category/dragon-martial-emperor/feed/"); Assert.IsTrue(chapters.Any()); }
public void BlogSpot_feed_test() { var uc = new FeedChecker(); var chapters = uc.Check("http://clickyclicktranslation.blogspot.com/feeds/posts/default?alt=rss"); Assert.IsTrue(chapters.Any()); }
public void Individual_feed_test() { var uc = new FeedChecker(); var chapters = uc.Check("http://www.lingson.com/tag/assassin-landlord-beauty-tenants/feed/"); var chapters2 = uc.CheckUsingWebClient("http://www.lingson.com/tag/assassin-landlord-beauty-tenants/feed/"); Assert.IsTrue(chapters.Any()); }
public IList <ReleaseForm> GetNewReleases(string url) { var chapters = new FeedChecker().Check(url); // filters out news and announments //chapters = chapters.Where(w => Regex.IsMatch(w.Title, @"\d+")); // must has number in title // return filtered chapters return(chapters.ToList()); }