Add MugiManga (#5395)
This commit is contained in:
parent
91e8561f76
commit
6231261e72
|
@ -0,0 +1,10 @@
|
|||
ext {
|
||||
extName = 'Mugi Manga'
|
||||
extClass = '.MugiManga'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://mugimanga.com'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -0,0 +1,29 @@
|
|||
package eu.kanade.tachiyomi.extension.tr.mugimanga
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import org.jsoup.nodes.Document
|
||||
import java.lang.Exception
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class MugiManga : Madara(
|
||||
"Mugi Manga",
|
||||
"https://mugimanga.com",
|
||||
"tr",
|
||||
SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
|
||||
) {
|
||||
override val client = super.client.newBuilder()
|
||||
.rateLimit(3)
|
||||
.build()
|
||||
|
||||
override val supportsLatest = false
|
||||
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return super.pageListParse(document).takeIf { it.isNotEmpty() }
|
||||
?: throw Exception("WebView'de oturum açmanız gerekebilir")
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue