Add ManhwaClub.net, Remove ManhwaClub (#3013)
* Add ManhwaClub.net * Remove ManhwaClub
This commit is contained in:
parent
34beb05922
commit
78847a26e6
src
all/manhwaclubnet
build.gradle
res
mipmap-hdpi
mipmap-mdpi
mipmap-xhdpi
mipmap-xxhdpi
mipmap-xxxhdpi
src/eu/kanade/tachiyomi/extension/all/manhwaclubnet
en/manhwaclub
build.gradle
res
mipmap-hdpi
mipmap-mdpi
mipmap-xhdpi
mipmap-xxhdpi
mipmap-xxxhdpi
src/eu/kanade/tachiyomi/extension/en/manhwaclub
10
src/all/manhwaclubnet/build.gradle
Normal file
10
src/all/manhwaclubnet/build.gradle
Normal file
@ -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"
|
BIN
src/all/manhwaclubnet/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/all/manhwaclubnet/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 6.6 KiB |
BIN
src/all/manhwaclubnet/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/all/manhwaclubnet/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 3.3 KiB |
BIN
src/all/manhwaclubnet/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/all/manhwaclubnet/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 10 KiB |
BIN
src/all/manhwaclubnet/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/all/manhwaclubnet/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 22 KiB |
BIN
src/all/manhwaclubnet/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/all/manhwaclubnet/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 36 KiB |
24
src/all/manhwaclubnet/src/eu/kanade/tachiyomi/extension/all/manhwaclubnet/ManhwaClubNet.kt
Normal file
24
src/all/manhwaclubnet/src/eu/kanade/tachiyomi/extension/all/manhwaclubnet/ManhwaClubNet.kt
Normal file
@ -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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
src/all/manhwaclubnet/src/eu/kanade/tachiyomi/extension/all/manhwaclubnet/ManhwaClubNetFactory.kt
Normal file
11
src/all/manhwaclubnet/src/eu/kanade/tachiyomi/extension/all/manhwaclubnet/ManhwaClubNetFactory.kt
Normal file
@ -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"
|
|
Binary file not shown.
Before ![]() (image error) Size: 3.9 KiB |
Binary file not shown.
Before ![]() (image error) Size: 2.2 KiB |
Binary file not shown.
Before ![]() (image error) Size: 5.8 KiB |
Binary file not shown.
Before ![]() (image error) Size: 10 KiB |
Binary file not shown.
Before ![]() (image error) 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()
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user