Skip to content

Commit

Permalink
Add hanmanwuzhe source (#5099)
Browse files Browse the repository at this point in the history
* Add hanmanwuzhe source

* changed filter from CheckBox to Select

* Switched to MCCMS Multisrc

* Apply suggestions from code review

---------

Co-authored-by: AwkwardPeak7 <[email protected]>
  • Loading branch information
heagan01 and AwkwardPeak7 authored Nov 7, 2024
1 parent d2eb61f commit adc6d00
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/zh/hanmanwuzhe/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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"))
}
}
}

0 comments on commit adc6d00

Please sign in to comment.