[RU]MangaPoisk LICENSED notify deleted chapters (#18370)
* [RU]MangaPoisk LICENSED notify deleted chapters * no supposed
This commit is contained in:
parent
dfd2b6cda1
commit
a1c8444d24
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'MangaPoisk'
|
extName = 'MangaPoisk'
|
||||||
pkgNameSuffix = 'ru.mangapoisk'
|
pkgNameSuffix = 'ru.mangapoisk'
|
||||||
extClass = '.MangaPoisk'
|
extClass = '.MangaPoisk'
|
||||||
extVersionCode = 9
|
extVersionCode = 10
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,6 +150,10 @@ class MangaPoisk : ParsedHttpSource() {
|
||||||
else -> SManga.UNKNOWN
|
else -> SManga.UNKNOWN
|
||||||
}
|
}
|
||||||
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
|
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
|
||||||
|
val document = client.newCall(GET("$baseUrl${manga.url}?tab=chapters", headers)).execute().asJsoup()
|
||||||
|
if (document.select(".text-md:contains(Главы удалены по требованию правообладателя)").isNotEmpty()) {
|
||||||
|
return Observable.error(Exception("Лицензировано - Нет глав"))
|
||||||
|
}
|
||||||
val pageItems = client.newCall(chapterListRequest(manga)).execute().asJsoup().select("li.page-item")
|
val pageItems = client.newCall(chapterListRequest(manga)).execute().asJsoup().select("li.page-item")
|
||||||
val pages = mutableListOf(1)
|
val pages = mutableListOf(1)
|
||||||
if (pageItems.lastIndex > 1) {
|
if (pageItems.lastIndex > 1) {
|
||||||
|
|
Loading…
Reference in New Issue