diff --git a/src/pt/lerhentai/build.gradle b/src/pt/lerhentai/build.gradle new file mode 100644 index 000000000..84befc749 --- /dev/null +++ b/src/pt/lerhentai/build.gradle @@ -0,0 +1,10 @@ +ext { + extName = 'Ler Hentai' + extClass = '.LerHentai' + themePkg = 'madara' + baseUrl = 'https://lerhentai.com' + overrideVersionCode = 0 + isNsfw = true +} + +apply from: "$rootDir/common.gradle" diff --git a/src/pt/lerhentai/res/mipmap-hdpi/ic_launcher.png b/src/pt/lerhentai/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..097897cd1 Binary files /dev/null and b/src/pt/lerhentai/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/pt/lerhentai/res/mipmap-mdpi/ic_launcher.png b/src/pt/lerhentai/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..4ee798b6f Binary files /dev/null and b/src/pt/lerhentai/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/pt/lerhentai/res/mipmap-xhdpi/ic_launcher.png b/src/pt/lerhentai/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..0c7c812be Binary files /dev/null and b/src/pt/lerhentai/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/pt/lerhentai/res/mipmap-xxhdpi/ic_launcher.png b/src/pt/lerhentai/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..8e6550822 Binary files /dev/null and b/src/pt/lerhentai/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/pt/lerhentai/res/mipmap-xxxhdpi/ic_launcher.png b/src/pt/lerhentai/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..cfe49a99c Binary files /dev/null and b/src/pt/lerhentai/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/pt/lerhentai/src/eu/kanade/tachiyomi/extension/pt/lerhentai/LerHentai.kt b/src/pt/lerhentai/src/eu/kanade/tachiyomi/extension/pt/lerhentai/LerHentai.kt new file mode 100644 index 000000000..73165786b --- /dev/null +++ b/src/pt/lerhentai/src/eu/kanade/tachiyomi/extension/pt/lerhentai/LerHentai.kt @@ -0,0 +1,23 @@ +package eu.kanade.tachiyomi.extension.pt.lerhentai + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.source.model.SManga +import org.jsoup.nodes.Document +import java.text.SimpleDateFormat +import java.util.Locale + +class LerHentai : Madara( + "Ler Hentai", + "https://lerhentai.com", + "pt-BR", + dateFormat = SimpleDateFormat("d 'de' MMMM 'de' yyyy", Locale("pt", "BR")), +) { + override val useLoadMoreRequest = LoadMoreStrategy.Never + override val useNewChapterEndpoint = false + + override fun mangaDetailsParse(document: Document): SManga { + return super.mangaDetailsParse(document).apply { + description = description?.removePrefix("Sinopse\n\n") + } + } +}