[RU]GroupLe rollback variety for allhentai (#273)

* [RU]GroupLe rollback variety for allhentai

* clean

---------

Co-authored-by: Eshlender <e.shlyapkin99@gmail.com>
This commit is contained in:
stevenyomi 2024-01-15 22:18:15 +08:00 committed by GitHub
parent b6c12090cd
commit 1ae392fa7d
2 changed files with 6 additions and 1 deletions

View File

@ -288,6 +288,11 @@ abstract class GroupLe(
var readerMark = "rm_h.readerDoInit(["
// allhentai necessary
if (!html.contains(readerMark)) {
readerMark = "rm_h.readerInit( 0,["
}
if (!html.contains(readerMark)) {
if (document.select(".input-lg").isNotEmpty() || (document.select(".user-avatar").isNullOrEmpty() && document.select("img.logo").first()?.attr("title")?.contains("Allhentai") == true)) {
throw Exception("Для просмотра контента необходима авторизация через WebView\uD83C\uDF0E")

View File

@ -9,7 +9,7 @@ class GroupLeGenerator : ThemeSourceGenerator {
override val themeClass = "GroupLe"
override val baseVersionCode = 21
override val baseVersionCode = 22
override val sources = listOf(
SingleLang("ReadManga", "https://readmanga.live", "ru", overrideVersionCode = 46),