HM2D: remove url prefix in override (#8450)
* Update HM2D.kt * Update MadaraGenerator.kt * Update HM2D.kt
This commit is contained in:
parent
53c9141f57
commit
f14d6a9170
|
@ -2,6 +2,9 @@ package eu.kanade.tachiyomi.extension.en.hm2d
|
|||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.annotations.Nsfw
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import okhttp3.Request
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
|
@ -11,4 +14,14 @@ class HM2D : Madara(
|
|||
"https://mangadistrict.com/hdoujin/",
|
||||
"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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Hiperdex", "https://hiperdex.com", "en", isNsfw = true, overrideVersionCode = 4),
|
||||
SingleLang("Hizomanga", "https://hizomanga.com", "ar"),
|
||||
SingleLang("hManhwa", "https://hmanhwa.com", "en", isNsfw = true, overrideVersionCode = 1),
|
||||
SingleLang("HM2D", "https://mangadistrict.com/hdoujin/", "en", isNsfw = true),
|
||||
SingleLang("HM2D", "https://mangadistrict.com/hdoujin/", "en", isNsfw = true, overrideVersionCode = 1),
|
||||
SingleLang("Hscans", "https://hscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Hunter Fansub", "https://hunterfansub.com", "es", overrideVersionCode = 1),
|
||||
SingleLang("Ichirin No Hana Yuri", "https://ichirinnohanayuri.com.br", "pt-BR", overrideVersionCode = 3),
|
||||
|
|
Loading…
Reference in New Issue