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
This commit is contained in:
parent
166dbec86f
commit
09ae28784a
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'HM2D'
|
extName = 'HM2D'
|
||||||
extClass = '.HM2D'
|
extClass = '.HM2D'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://mangadistrict.com/hdoujin'
|
baseUrl = 'https://doujindistrict.com'
|
||||||
overrideVersionCode = 1
|
overrideVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,11 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.hm2d
|
package eu.kanade.tachiyomi.extension.en.hm2d
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
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(
|
class HM2D : Madara(
|
||||||
"HM2D",
|
"HM2D",
|
||||||
"https://mangadistrict.com/hdoujin/",
|
"https://doujindistrict.com",
|
||||||
"en",
|
"en",
|
||||||
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US),
|
|
||||||
) {
|
) {
|
||||||
|
override fun searchMangaNextPageSelector() = "div[role=navigation] span.current + a.page"
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue