Restrcutured the database, and updated pipeline to include cover art.
This commit is contained in:
@@ -231,7 +231,7 @@ public class MangaDexMetadataTests
|
||||
sourceManga.ShouldNotBeNull();
|
||||
sourceManga.Title.Name.ShouldBe("Gals Can’t Be Kind to Otaku!?");
|
||||
|
||||
sourceManga.AlternateTitles.Count.ShouldBe(5);
|
||||
sourceManga.AlternateTitles.Length.ShouldBe(5);
|
||||
|
||||
sourceManga.AlternateTitles[0].Name.ShouldBe("オタクに優しいギャルはいない!?");
|
||||
sourceManga.AlternateTitles[0].Language.ShouldBe(Language.Japanese);
|
||||
@@ -248,7 +248,7 @@ public class MangaDexMetadataTests
|
||||
sourceManga.AlternateTitles[4].Name.ShouldBe("Gals Can't Be Kind To A Geek!?");
|
||||
sourceManga.AlternateTitles[4].Language.ShouldBe(Language.English);
|
||||
|
||||
sourceManga.Genres.Count.ShouldBe(5);
|
||||
sourceManga.Genres.Length.ShouldBe(5);
|
||||
sourceManga.Genres[0].ShouldBe("Romance");
|
||||
sourceManga.Genres[1].ShouldBe("Comedy");
|
||||
sourceManga.Genres[2].ShouldBe("School Life");
|
||||
@@ -263,7 +263,7 @@ public class MangaDexMetadataTests
|
||||
sourceManga.Contributors[1].Name.ShouldBe("Sakana Uozimi");
|
||||
sourceManga.Contributors[1].Role.ShouldBe(ContributorRole.Artist);
|
||||
|
||||
sourceManga.Chapters.Count.ShouldBe(3);
|
||||
sourceManga.Chapters.Length.ShouldBe(3);
|
||||
|
||||
sourceManga.Chapters[0].Volume.ShouldBeNull();
|
||||
sourceManga.Chapters[0].Number.ShouldBe(69);
|
||||
@@ -280,8 +280,8 @@ public class MangaDexMetadataTests
|
||||
sourceManga.Chapters[2].Title.ShouldBe("Otaku & Gyaru & Protegee");
|
||||
sourceManga.Chapters[2].Url.ShouldBe("https://mangadex.org/chapter/b5206e9b-6e3e-4ef0-aa62-381fd0ff75a5");
|
||||
|
||||
sourceManga.CoverArt.Length.ShouldBe(2);
|
||||
sourceManga.CoverArt[0].ShouldBe("https://mangadex.org/covers/ee96e2b7-9af2-4864-9656-649f4d3b6fec/2569ffd8-4ba1-4030-8d08-b7a21333a7a6.jpg");
|
||||
sourceManga.CoverArt[1].ShouldBe("https://mangadex.org/covers/ee96e2b7-9af2-4864-9656-649f4d3b6fec/d2314e9b-4287-4e65-8045-b713d97c0b28.jpg");
|
||||
sourceManga.CoverArtUrls.Length.ShouldBe(2);
|
||||
sourceManga.CoverArtUrls[0].ShouldBe("https://mangadex.org/covers/ee96e2b7-9af2-4864-9656-649f4d3b6fec/2569ffd8-4ba1-4030-8d08-b7a21333a7a6.jpg");
|
||||
sourceManga.CoverArtUrls[1].ShouldBe("https://mangadex.org/covers/ee96e2b7-9af2-4864-9656-649f4d3b6fec/d2314e9b-4287-4e65-8045-b713d97c0b28.jpg");
|
||||
}
|
||||
}
|
||||
@@ -50,11 +50,12 @@ public class MangaNatoMetadataTests
|
||||
manga.RatingPercent.ShouldBe(97);
|
||||
manga.Votes.ShouldBe(15979);
|
||||
|
||||
manga.Descriptions.Length.ShouldBe(1);
|
||||
//manga.Description.ShouldStartWith("Ooyama-kun normally doesn’t get involved with Akutsu-san, a delinquent girl in his class");
|
||||
manga.Description?.Name.ShouldStartWith("Ooyama-kun normally doesn’t get involved with Akutsu-san, a delinquent girl in his class");
|
||||
manga.Description?.Name.ShouldEndWith("Artist's Pixiv: https://www.pixiv.net/member.php?id=133935");
|
||||
manga.Descriptions[0].Name.ShouldStartWith("Ooyama-kun normally doesn’t get involved with Akutsu-san, a delinquent girl in his class");
|
||||
manga.Descriptions[0].Name.ShouldEndWith("Artist's Pixiv: https://www.pixiv.net/member.php?id=133935");
|
||||
|
||||
manga.Chapters.Count.ShouldBe(236);
|
||||
manga.Chapters.Length.ShouldBe(236);
|
||||
|
||||
manga.Chapters[0].Url.ShouldBe("https://chapmanganato.to/manga-hf984788/chapter-186");
|
||||
manga.Chapters[0].Number.ShouldBe(186);
|
||||
|
||||
@@ -46,7 +46,7 @@ public class NatoMangaWebCrawlerTests
|
||||
//manga.Description.ShouldStartWith("Ooyama-kun normally doesn’t get involved with Akutsu-san, a delinquent girl in his class");
|
||||
//manga.Description.ShouldEndWith("Artist's Pixiv: https://www.pixiv.net/member.php?id=133935");
|
||||
|
||||
manga.Chapters.Count.ShouldBe(83);
|
||||
manga.Chapters.Length.ShouldBe(83);
|
||||
|
||||
manga.Chapters[0].Url.ShouldBe("https://www.natomanga.com/manga/gal-cant-be-kind-to-otaku/chapter-69");
|
||||
manga.Chapters[0].Number.ShouldBe(69);
|
||||
|
||||
Reference in New Issue
Block a user