diff --git a/src/en/hm2d/build.gradle b/src/en/hm2d/build.gradle index 90fed982b..45c150087 100644 --- a/src/en/hm2d/build.gradle +++ b/src/en/hm2d/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'HM2D' extClass = '.HM2D' themePkg = 'madara' - baseUrl = 'https://mangadistrict.com/hdoujin' - overrideVersionCode = 1 + baseUrl = 'https://doujindistrict.com' + overrideVersionCode = 2 isNsfw = true } diff --git a/src/en/hm2d/src/eu/kanade/tachiyomi/extension/en/hm2d/HM2D.kt b/src/en/hm2d/src/eu/kanade/tachiyomi/extension/en/hm2d/HM2D.kt index 43ce7ccc7..06b1a28bb 100644 --- a/src/en/hm2d/src/eu/kanade/tachiyomi/extension/en/hm2d/HM2D.kt +++ b/src/en/hm2d/src/eu/kanade/tachiyomi/extension/en/hm2d/HM2D.kt @@ -1,24 +1,11 @@ package eu.kanade.tachiyomi.extension.en.hm2d import eu.kanade.tachiyomi.multisrc.madara.Madara -import eu.kanade.tachiyomi.network.GET -import eu.kanade.tachiyomi.source.model.SManga -import okhttp3.Request -import java.text.SimpleDateFormat -import java.util.Locale class HM2D : Madara( "HM2D", - "https://mangadistrict.com/hdoujin/", + "https://doujindistrict.com", "en", - dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US), ) { - - override fun mangaDetailsRequest(manga: SManga): Request { - return GET(baseUrl + manga.url.removePrefix("/hdoujin/"), headers) - } - - override fun chapterListRequest(manga: SManga): Request { - return GET(baseUrl + manga.url.removePrefix("/hdoujin/"), headers) - } + override fun searchMangaNextPageSelector() = "div[role=navigation] span.current + a.page" }