diff --git a/MangaRipper.Core/MangaFoxService.cs b/MangaRipper.Core/MangaFoxService.cs index 49b97fa..e4af0b8 100644 --- a/MangaRipper.Core/MangaFoxService.cs +++ b/MangaRipper.Core/MangaFoxService.cs @@ -44,18 +44,12 @@ public async Task> FindImanges(Chapter chapter, IProgress pro var parser = new Parser(); // find all pages in a chapter - Trace.WriteLine("FindImanges > DownloadStringAsync: " + chapter.Link); string input = await downloader.DownloadStringAsync(chapter.Link); - Trace.WriteLine("FindImanges > Input Length: " + input.Length); - var newInput = input.Substring(13000, 3000); - Trace.WriteLine(newInput); var pages = parser.Parse(@"", input, "Value"); - Trace.WriteLine("FindImanges > Before Count: " + pages.Count); // transform pages link pages = pages.Select(p => { var value = new Uri(new Uri(chapter.Link), (p + ".html")).AbsoluteUri; - Trace.WriteLine("FindImanges > Transform: " + p + " " + value); return value; }).ToList(); diff --git a/MangaRipper.Test/UnitTest.cs b/MangaRipper.Test/UnitTest.cs index 0caca2b..90d3e9a 100644 --- a/MangaRipper.Test/UnitTest.cs +++ b/MangaRipper.Test/UnitTest.cs @@ -21,7 +21,7 @@ public void Initialize() } [TestMethod] - public async Task TestMangaReader_Test() + public async Task MangaReader_Test() { string url = "http://www.mangareader.net/naruto"; var service = Framework.GetService(url); @@ -35,18 +35,19 @@ public async Task TestMangaReader_Test() [TestMethod] public async Task MangaFox_Test() { - string url = "http://mangafox.me/manga/poputepipikku"; + // Test with unlicensed manga. Appveyor CI is US based and cannot access licensed manga in the US. + // If we test with a licensed manga, this test will failed. + string url = "http://mangafox.me/manga/tian_jiang_xian_shu_nan/"; var service = Framework.GetService(url); var chapters = await service.FindChapters(url, new Progress(), source.Token); Assert.IsTrue(chapters.Count > 0, "Cannot find chapters."); var chapter = chapters[0]; - Trace.WriteLine(string.Format("MangaFox_Test - Chapter: [{0}] [{1}]", chapter.Name, chapter.Link)); var images = await service.FindImanges(chapter, new Progress(), source.Token); Assert.IsTrue(images.Count > 0, "Cannot find images."); } [TestMethod] - public async Task TestMangaHere_Test() + public async Task MangaHere_Test() { string url = "http://www.mangahere.co/manga/the_god_of_high_school/"; var service = Framework.GetService(url); @@ -58,7 +59,7 @@ public async Task TestMangaHere_Test() } [TestMethod] - public async Task TestMangaShare_Test() + public async Task MangaShare_Test() { string url = "http://read.mangashare.com/Beelzebub"; var service = Framework.GetService(url);