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:
Chocobo Latos 2024-11-07 18:15:50 +07:00 committed by Draff
parent 76532be103
commit fefd4b85c3
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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"))
}
}
}