Add hanmanwuzhe source (#5099)
* Add hanmanwuzhe source * changed filter from CheckBox to Select * Switched to MCCMS Multisrc * Apply suggestions from code review --------- Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
This commit is contained in:
parent
76532be103
commit
fefd4b85c3
|
@ -0,0 +1,10 @@
|
||||||
|
ext {
|
||||||
|
extName = 'hanmanwuzhe'
|
||||||
|
extClass = '.hanmanwuzhe'
|
||||||
|
themePkg = 'mccms'
|
||||||
|
baseUrl = 'https://www.hanmanwuzhe.com'
|
||||||
|
overrideVersionCode = 1
|
||||||
|
isNsfw = true
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
|
@ -0,0 +1,22 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.zh.hanmanwuzhe
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.mccms.MCCMS
|
||||||
|
import eu.kanade.tachiyomi.multisrc.mccms.MCCMSConfig
|
||||||
|
import eu.kanade.tachiyomi.source.model.Page
|
||||||
|
import eu.kanade.tachiyomi.util.asJsoup
|
||||||
|
import okhttp3.Response
|
||||||
|
|
||||||
|
class hanmanwuzhe : MCCMS(
|
||||||
|
"嘀嗒漫画",
|
||||||
|
"https://www.hanmanwuzhe.com",
|
||||||
|
"zh",
|
||||||
|
MCCMSConfig(useMobilePageList = true),
|
||||||
|
) {
|
||||||
|
|
||||||
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
|
val document = response.asJsoup()
|
||||||
|
return document.select("div.chapterbox li.pic img").mapIndexed { idx, img ->
|
||||||
|
Page(idx, imageUrl = img.attr("src"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue