Add MugiManga (#5395)

This commit is contained in:
Chopper 2024-10-07 08:15:17 -03:00 committed by Draff
parent 91e8561f76
commit 6231261e72
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 39 additions and 0 deletions

View File

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

View File

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