|
|
|
@ -151,8 +151,10 @@ class MangareadRepository(
|
|
|
|
?.selectFirst("div.reading-content")
|
|
|
|
?.selectFirst("div.reading-content")
|
|
|
|
?: throw ParseException("Root not found")
|
|
|
|
?: throw ParseException("Root not found")
|
|
|
|
return root.select("div.page-break").map { div ->
|
|
|
|
return root.select("div.page-break").map { div ->
|
|
|
|
val img = div.selectFirst("img")
|
|
|
|
val img = div.selectFirst("img") ?: parseFailed("Page image not found")
|
|
|
|
val url = img?.relUrl("src") ?: parseFailed("Page image not found")
|
|
|
|
val url = img.relUrl("data-src").ifEmpty {
|
|
|
|
|
|
|
|
img.relUrl("src")
|
|
|
|
|
|
|
|
}
|
|
|
|
MangaPage(
|
|
|
|
MangaPage(
|
|
|
|
id = generateUid(url),
|
|
|
|
id = generateUid(url),
|
|
|
|
url = url,
|
|
|
|
url = url,
|
|
|
|
|