diff --git a/src/tr/hoifansub/build.gradle b/src/tr/hoifansub/build.gradle new file mode 100644 index 000000000..6231d5930 --- /dev/null +++ b/src/tr/hoifansub/build.gradle @@ -0,0 +1,10 @@ +ext { + extName = 'Hoi Fansub' + extClass = '.HoiFansub' + themePkg = 'madara' + baseUrl = 'https://hoifansub.com' + overrideVersionCode = 0 + isNsfw = true +} + +apply from: "$rootDir/common.gradle" diff --git a/src/tr/hoifansub/res/mipmap-hdpi/ic_launcher.png b/src/tr/hoifansub/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..b3a7a1c6f Binary files /dev/null and b/src/tr/hoifansub/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/tr/hoifansub/res/mipmap-mdpi/ic_launcher.png b/src/tr/hoifansub/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..6b0bf0208 Binary files /dev/null and b/src/tr/hoifansub/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/tr/hoifansub/res/mipmap-xhdpi/ic_launcher.png b/src/tr/hoifansub/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..8a36d25f4 Binary files /dev/null and b/src/tr/hoifansub/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/tr/hoifansub/res/mipmap-xxhdpi/ic_launcher.png b/src/tr/hoifansub/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..411605668 Binary files /dev/null and b/src/tr/hoifansub/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/tr/hoifansub/res/mipmap-xxxhdpi/ic_launcher.png b/src/tr/hoifansub/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..70f8edafa Binary files /dev/null and b/src/tr/hoifansub/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/tr/hoifansub/src/eu/kanade/tachiyomi/extension/tr/hoifansub/HoiFansub.kt b/src/tr/hoifansub/src/eu/kanade/tachiyomi/extension/tr/hoifansub/HoiFansub.kt new file mode 100644 index 000000000..eb5c08fff --- /dev/null +++ b/src/tr/hoifansub/src/eu/kanade/tachiyomi/extension/tr/hoifansub/HoiFansub.kt @@ -0,0 +1,29 @@ +package eu.kanade.tachiyomi.extension.tr.hoifansub + +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 HoiFansub : Madara( + "Hoi Fansub", + "https://hoifansub.com", + "tr", + dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("tr")), +) { + override val useLoadMoreRequest = LoadMoreStrategy.Never + 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 + } +}