HM2D: remove url prefix in override (#8450)

* Update HM2D.kt

* Update MadaraGenerator.kt

* Update HM2D.kt
This commit is contained in:
CVIUS 2021-08-08 01:00:26 +08:00 committed by GitHub
parent 53c9141f57
commit f14d6a9170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -2,6 +2,9 @@ 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.annotations.Nsfw 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.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
@ -11,4 +14,14 @@ class HM2D : Madara(
"https://mangadistrict.com/hdoujin/", "https://mangadistrict.com/hdoujin/",
"en", "en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US) 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)
}
}

View File

@ -106,7 +106,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Hiperdex", "https://hiperdex.com", "en", isNsfw = true, overrideVersionCode = 4), SingleLang("Hiperdex", "https://hiperdex.com", "en", isNsfw = true, overrideVersionCode = 4),
SingleLang("Hizomanga", "https://hizomanga.com", "ar"), SingleLang("Hizomanga", "https://hizomanga.com", "ar"),
SingleLang("hManhwa", "https://hmanhwa.com", "en", isNsfw = true, overrideVersionCode = 1), 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("Hscans", "https://hscans.com", "en", overrideVersionCode = 1),
SingleLang("Hunter Fansub", "https://hunterfansub.com", "es", overrideVersionCode = 1), SingleLang("Hunter Fansub", "https://hunterfansub.com", "es", overrideVersionCode = 1),
SingleLang("Ichirin No Hana Yuri", "https://ichirinnohanayuri.com.br", "pt-BR", overrideVersionCode = 3), SingleLang("Ichirin No Hana Yuri", "https://ichirinnohanayuri.com.br", "pt-BR", overrideVersionCode = 3),