diff --git a/src/tr/alliedfansub/build.gradle b/src/tr/alliedfansub/build.gradle new file mode 100644 index 000000000..58104cd87 --- /dev/null +++ b/src/tr/alliedfansub/build.gradle @@ -0,0 +1,10 @@ +ext { + extName = 'Allied Fansub' + extClass = '.AlliedFansub' + themePkg = 'madara' + baseUrl = 'https://alliedfansub.net' + overrideVersionCode = 0 + isNsfw = true +} + +apply from: "$rootDir/common.gradle" diff --git a/src/tr/alliedfansub/res/mipmap-hdpi/ic_launcher.png b/src/tr/alliedfansub/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..db0061950 Binary files /dev/null and b/src/tr/alliedfansub/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/tr/alliedfansub/res/mipmap-mdpi/ic_launcher.png b/src/tr/alliedfansub/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..59022a940 Binary files /dev/null and b/src/tr/alliedfansub/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/tr/alliedfansub/res/mipmap-xhdpi/ic_launcher.png b/src/tr/alliedfansub/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..11ff46878 Binary files /dev/null and b/src/tr/alliedfansub/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/tr/alliedfansub/res/mipmap-xxhdpi/ic_launcher.png b/src/tr/alliedfansub/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..c61a23d5a Binary files /dev/null and b/src/tr/alliedfansub/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/tr/alliedfansub/res/mipmap-xxxhdpi/ic_launcher.png b/src/tr/alliedfansub/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..06ff3c8eb Binary files /dev/null and b/src/tr/alliedfansub/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/tr/alliedfansub/src/eu/kanade/tachiyomi/extension/tr/alliedfansub/AlliedFansub.kt b/src/tr/alliedfansub/src/eu/kanade/tachiyomi/extension/tr/alliedfansub/AlliedFansub.kt new file mode 100644 index 000000000..8e15de37b --- /dev/null +++ b/src/tr/alliedfansub/src/eu/kanade/tachiyomi/extension/tr/alliedfansub/AlliedFansub.kt @@ -0,0 +1,29 @@ +package eu.kanade.tachiyomi.extension.tr.alliedfansub + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.source.model.Page +import org.jsoup.nodes.Document +import java.text.SimpleDateFormat +import java.util.Locale + +class AlliedFansub : Madara( + "Allied Fansub", + "https://alliedfansub.net", + "tr", + dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT), +) { + override val useLoadMoreRequest = LoadMoreStrategy.Always + override val useNewChapterEndpoint = true + + override fun pageListParse(document: Document): List { + val pageList = super.pageListParse(document) + + if ( + pageList.isEmpty() && + document.select(".content-blocked, .login-required").isNotEmpty() + ) { + throw Exception("Okumak için WebView üzerinden giriş yapın") + } + return pageList + } +}