Add ManhwaClub.net, Remove ManhwaClub (#3013)
* Add ManhwaClub.net * Remove ManhwaClub
|
@ -0,0 +1,10 @@
|
||||||
|
ext {
|
||||||
|
extName = 'ManhwaClub.net'
|
||||||
|
extClass = '.ManhwaClubNetFactory'
|
||||||
|
themePkg = 'madara'
|
||||||
|
baseUrl = 'https://manhwaclub.net'
|
||||||
|
overrideVersionCode = 0
|
||||||
|
isNsfw = true
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 36 KiB |
|
@ -0,0 +1,24 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.all.manhwaclubnet
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
|
import okhttp3.Response
|
||||||
|
|
||||||
|
class ManhwaClubNet(lang: String) : Madara(
|
||||||
|
"ManhwaClub.net",
|
||||||
|
"https://manhwaclub.net",
|
||||||
|
lang,
|
||||||
|
) {
|
||||||
|
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||||
|
override val useNewChapterEndpoint = false
|
||||||
|
|
||||||
|
override fun chapterListParse(response: Response): List<SChapter> {
|
||||||
|
val chapters = super.chapterListParse(response)
|
||||||
|
|
||||||
|
return when (lang) {
|
||||||
|
"en" -> chapters.filterNot { it.name.endsWith(" raw") }
|
||||||
|
"ko" -> chapters.filter { it.name.endsWith(" raw") }
|
||||||
|
else -> emptyList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.all.manhwaclubnet
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.source.SourceFactory
|
||||||
|
|
||||||
|
class ManhwaClubNetFactory : SourceFactory {
|
||||||
|
// Font for icon: Cooper BT Std Black Headline
|
||||||
|
override fun createSources() = listOf(
|
||||||
|
ManhwaClubNet("en"),
|
||||||
|
ManhwaClubNet("ko"),
|
||||||
|
)
|
||||||
|
}
|
|
@ -1,10 +0,0 @@
|
||||||
ext {
|
|
||||||
extName = 'ManhwaClub'
|
|
||||||
extClass = '.ManhwaClub'
|
|
||||||
themePkg = 'hentaihand'
|
|
||||||
baseUrl = 'https://manhwa.club'
|
|
||||||
overrideVersionCode = 3
|
|
||||||
isNsfw = true
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
|
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 16 KiB |
|
@ -1,10 +0,0 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.manhwaclub
|
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.hentaihand.HentaiHand
|
|
||||||
import okhttp3.OkHttpClient
|
|
||||||
|
|
||||||
class ManhwaClub : HentaiHand("ManhwaClub", "https://manhwa.club", "en", true) {
|
|
||||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
|
||||||
.addInterceptor { authIntercept(it) }
|
|
||||||
.build()
|
|
||||||
}
|
|