Skip to content

Commit

Permalink
Merge branch 'KotatsuApp:master' into new-src
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonx943 authored Oct 9, 2024
2 parents 4adcd22 + ce9404d commit 4f1d4ab
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,15 +678,16 @@ internal abstract class MadaraParser(
"No image found, try to log in",
fullUrl,
)
return root.select(selectPage).map { div ->
val img = div.selectFirstOrThrow("img")
val url = img.src()?.toRelativeUrl(domain) ?: div.parseFailed("Image src not found")
MangaPage(
id = generateUid(url),
url = url,
preview = null,
source = source,
)
return root.select(selectPage).flatMap { div ->
div.selectOrThrow("img").map { img ->
val url = img.src()?.toRelativeUrl(domain) ?: div.parseFailed("Image src not found")
MangaPage(
id = generateUid(url),
url = url,
preview = null,
source = source,
)
}
}
}
} else {
Expand Down

0 comments on commit 4f1d4ab

Please sign in to comment.