diff --git a/src/tr/mugimanga/build.gradle b/src/tr/mugimanga/build.gradle new file mode 100644 index 000000000..547611e59 --- /dev/null +++ b/src/tr/mugimanga/build.gradle @@ -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" diff --git a/src/tr/mugimanga/res/mipmap-hdpi/ic_launcher.png b/src/tr/mugimanga/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..f0bc761fe Binary files /dev/null and b/src/tr/mugimanga/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/tr/mugimanga/res/mipmap-mdpi/ic_launcher.png b/src/tr/mugimanga/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..1f6f5b85a Binary files /dev/null and b/src/tr/mugimanga/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/tr/mugimanga/res/mipmap-xhdpi/ic_launcher.png b/src/tr/mugimanga/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..7557a8bc9 Binary files /dev/null and b/src/tr/mugimanga/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/tr/mugimanga/res/mipmap-xxhdpi/ic_launcher.png b/src/tr/mugimanga/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..8a14dae82 Binary files /dev/null and b/src/tr/mugimanga/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/tr/mugimanga/res/mipmap-xxxhdpi/ic_launcher.png b/src/tr/mugimanga/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..08e5d55dc Binary files /dev/null and b/src/tr/mugimanga/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/tr/mugimanga/src/eu/kanade/tachiyomi/extension/tr/mugimanga/MugiManga.kt b/src/tr/mugimanga/src/eu/kanade/tachiyomi/extension/tr/mugimanga/MugiManga.kt new file mode 100644 index 000000000..6b9244222 --- /dev/null +++ b/src/tr/mugimanga/src/eu/kanade/tachiyomi/extension/tr/mugimanga/MugiManga.kt @@ -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 { + return super.pageListParse(document).takeIf { it.isNotEmpty() } + ?: throw Exception("WebView'de oturum açmanız gerekebilir") + } +}