[RU]Nudemoon fix page parse (#11411)

Fix page parse
This commit is contained in:
abubaca4 2025-11-04 17:59:02 +03:00 committed by Draff
parent d7444787be
commit 58fda2ef51
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Nude-Moon'
extClass = '.Nudemoon'
extVersionCode = 23
extVersionCode = 24
isNsfw = true
}

View File

@ -241,17 +241,17 @@ class Nudemoon : ParsedHttpSource(), ConfigurableSource {
return textDate.replace("Май", "Мая").let {
try {
dateParseRu.parse(it)?.time ?: 0L
} catch (e: Exception) {
} catch (_: Exception) {
0L
}
}
}
override fun pageListParse(response: Response): List<Page> = mutableListOf<Page>().apply {
response.asJsoup().select("div.gallery-item img").mapIndexed { index, img ->
response.asJsoup().select("img.border").mapIndexed { index, img ->
add(Page(index, imageUrl = img.attr("abs:data-src")))
}
if (size == 0 && cookieManager.getCookie(baseUrl).contains("fusion_user").not()) {
if (isEmpty() && cookieManager.getCookie(baseUrl).contains("fusion_user").not()) {
throw Exception("Страницы не найдены. Возможно необходима авторизация в WebView")
}
}