MangaLib: notify user when manga redirects to home page (#6026)
This commit is contained in:
parent
3f6e313b87
commit
0f551203f1
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'MangaLib'
|
||||
pkgNameSuffix = 'ru.libmanga'
|
||||
extClass = '.LibManga'
|
||||
extVersionCode = 33
|
||||
extVersionCode = 34
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -146,6 +146,10 @@ class LibManga : ConfigurableSource, HttpSource() {
|
|||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
val document = response.asJsoup()
|
||||
|
||||
if (document.select("body[data-page=home]").isNotEmpty())
|
||||
throw Exception("Can't open manga. Try log in via WebView")
|
||||
|
||||
val manga = SManga.create()
|
||||
|
||||
if (document.html().contains("Манга удалена по просьбе правообладателей")) {
|
||||
|
|
Loading…
Reference in New Issue