parent
d7444787be
commit
58fda2ef51
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Nude-Moon'
|
extName = 'Nude-Moon'
|
||||||
extClass = '.Nudemoon'
|
extClass = '.Nudemoon'
|
||||||
extVersionCode = 23
|
extVersionCode = 24
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -241,17 +241,17 @@ class Nudemoon : ParsedHttpSource(), ConfigurableSource {
|
|||||||
return textDate.replace("Май", "Мая").let {
|
return textDate.replace("Май", "Мая").let {
|
||||||
try {
|
try {
|
||||||
dateParseRu.parse(it)?.time ?: 0L
|
dateParseRu.parse(it)?.time ?: 0L
|
||||||
} catch (e: Exception) {
|
} catch (_: Exception) {
|
||||||
0L
|
0L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun pageListParse(response: Response): List<Page> = mutableListOf<Page>().apply {
|
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")))
|
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")
|
throw Exception("Страницы не найдены. Возможно необходима авторизация в WebView")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user