mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 02:12:42 +01:00
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:
parent
3c1a73f512
commit
6869674087
@ -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
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user