update HM2D URL (doujindistrict.com) (#1375)

* new source: DoujinDistrict (theme: madara)

* Revert "new source: DoujinDistrict (theme: madara)"

This reverts commit 0b12e6be14.

* update HM2D URL (doujindistrict.com)

* remove unused imports
This commit is contained in:
Cuong M. Tran 2024-02-19 10:25:50 +07:00 committed by GitHub
parent 3c1a73f512
commit 6869674087
2 changed files with 4 additions and 17 deletions

View File

@ -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
}

View File

@ -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"
}