From 6283ae313a5ae807cb4a25284ebc06ebce80451c Mon Sep 17 00:00:00 2001 From: MuhamedZ1 <88522251+MuhamedZ1@users.noreply.github.com> Date: Sat, 22 Jul 2023 03:13:17 +0530 Subject: [PATCH] Added support for Black Clover Manga Online (#16823) (#17171) * Added support for Black Clover Manga Online * Done suggested changes * Removed pkgname and classname * Changed package name of ReadBlackCloverMangaOnline --- .../src/ReadBlackCloverMangaOnline.kt | 12 ++++++++++++ .../multisrc/mangacatalog/MangaCatalogGenerator.kt | 1 + 2 files changed, 13 insertions(+) create mode 100644 multisrc/overrides/mangacatalog/readblackclovermangaonline/src/ReadBlackCloverMangaOnline.kt diff --git a/multisrc/overrides/mangacatalog/readblackclovermangaonline/src/ReadBlackCloverMangaOnline.kt b/multisrc/overrides/mangacatalog/readblackclovermangaonline/src/ReadBlackCloverMangaOnline.kt new file mode 100644 index 000000000..1efd43049 --- /dev/null +++ b/multisrc/overrides/mangacatalog/readblackclovermangaonline/src/ReadBlackCloverMangaOnline.kt @@ -0,0 +1,12 @@ +package eu.kanade.tachiyomi.extension.en.readblackclovermangaonline + +import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog + +class ReadBlackCloverMangaOnline : MangaCatalog("Read Black Clover Manga Online", "https://ww7.readblackclover.com", "en") { + override val sourceList = listOf( + Pair("Black Clover", "$baseUrl/manga/black-clover"), + Pair("Black Clover Gainden Quartet Knights", "$baseUrl/manga/black-clover-gaiden-quartet-knights"), + Pair("Fan Colored", "$baseUrl/manga/black-clover-colored"), + Pair("Hungry Joker", "$baseUrl/manga/hungry-joker"), + ) +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt index 94ad06670..0bb77d672 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt @@ -14,6 +14,7 @@ class MangaCatalogGenerator : ThemeSourceGenerator { override val sources = listOf( SingleLang("Read Attack on Titan Shingeki no Kyojin Manga", "https://ww8.readsnk.com", "en", className = "ReadAttackOnTitanShingekiNoKyojinManga", overrideVersionCode = 4), SingleLang("Read Berserk Manga", "https://readberserk.com", "en"), + SingleLang("Read Black Clover Manga Online", "https://ww7.readblackclover.com", "en"), SingleLang("Read Boku no Hero Academia My Hero Academia Manga", "https://ww6.readmha.com", "en", className = "ReadBokuNoHeroAcademiaMyHeroAcademiaManga", overrideVersionCode = 2), SingleLang("Read Chainsaw Man Manga Online", "https://ww1.readchainsawman.com", "en"), SingleLang("Read Dr. Stone Manga Online", "https://ww3.readdrstone.com", "en", className = "ReadDrStoneMangaOnline"),