[RU]MangaPoisk loging another HTML and LICENSED chapters (#18328)
This commit is contained in:
parent
9f3b6bc205
commit
af1ad3293e
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'MangaPoisk'
|
extName = 'MangaPoisk'
|
||||||
pkgNameSuffix = 'ru.mangapoisk'
|
pkgNameSuffix = 'ru.mangapoisk'
|
||||||
extClass = '.MangaPoisk'
|
extClass = '.MangaPoisk'
|
||||||
extVersionCode = 8
|
extVersionCode = 9
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ class MangaPoisk : ParsedHttpSource() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun mangaDetailsParse(document: Document): SManga {
|
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()
|
val manga = SManga.create()
|
||||||
manga.title = infoElement.select(".text-base span").first()!!.text()
|
manga.title = infoElement.select(".text-base span").first()!!.text()
|
||||||
manga.genre = infoElement.select("span:contains(Жанр:) a").joinToString { it.text() }
|
manga.genre = infoElement.select("span:contains(Жанр:) a").joinToString { it.text() }
|
||||||
@ -204,6 +204,9 @@ class MangaPoisk : ParsedHttpSource() {
|
|||||||
return chapter
|
return chapter
|
||||||
}
|
}
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
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 ->
|
return document.select(".page-image").mapIndexed { index, element ->
|
||||||
Page(index, "", getImage(element))
|
Page(index, "", getImage(element))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user