[RU]MangaPoisk loging another HTML and LICENSED chapters (#18328)

This commit is contained in:
Eshlender 2023-10-03 03:43:16 +05:00 committed by GitHub
parent 9f3b6bc205
commit af1ad3293e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaPoisk'
pkgNameSuffix = 'ru.mangapoisk'
extClass = '.MangaPoisk'
extVersionCode = 8
extVersionCode = 9
isNsfw = true
}

View File

@ -134,7 +134,7 @@ class MangaPoisk : ParsedHttpSource() {
}
override fun mangaDetailsParse(document: Document): SManga {
val infoElement = document.select("div.card").first()!!
val infoElement = document.select("div.card:has(header)").first()!!
val manga = SManga.create()
manga.title = infoElement.select(".text-base span").first()!!.text()
manga.genre = infoElement.select("span:contains(Жанр:) a").joinToString { it.text() }
@ -204,6 +204,9 @@ class MangaPoisk : ParsedHttpSource() {
return chapter
}
override fun pageListParse(document: Document): List<Page> {
if (document.toString().contains("text-error-500-400-token")) {
throw Exception("Лицензировано - Глава удалена по требованию правообладателя.")
}
return document.select(".page-image").mapIndexed { index, element ->
Page(index, "", getImage(element))
}