From 6869674087a55bdeeaa7ab8bd517ea993c4e9df9 Mon Sep 17 00:00:00 2001 From: "Cuong M. Tran" Date: Mon, 19 Feb 2024 10:25:50 +0700 Subject: [PATCH] update HM2D URL (doujindistrict.com) (#1375) * new source: DoujinDistrict (theme: madara) * Revert "new source: DoujinDistrict (theme: madara)" This reverts commit 0b12e6be1425192e28166243dbd4fc6e2375ad12. * update HM2D URL (doujindistrict.com) * remove unused imports --- src/en/hm2d/build.gradle | 4 ++-- .../kanade/tachiyomi/extension/en/hm2d/HM2D.kt | 17 ++--------------- 2 files changed, 4 insertions(+), 17 deletions(-) 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" }