Merge pull request #1442 - dragonx943/sources/manhwaindo
[ManhwaIndo] Fix "Content not found or removed"
This commit is contained in:
2
.github/summary.yaml
vendored
2
.github/summary.yaml
vendored
@@ -1 +1 @@
|
|||||||
total: 1181
|
total: 1181
|
||||||
@@ -29,7 +29,7 @@ internal class ManhwaIndoParser(context: MangaLoaderContext) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun fetchPage(img: Element): MangaPage? = runCatchingCancellable {
|
private suspend fun fetchPage(img: Element): MangaPage? = runCatchingCancellable {
|
||||||
val url = img.attrAsRelativeUrlOrNull("data-src") ?: return@runCatchingCancellable null
|
val url = img.requireSrc().toAbsoluteUrl(domain) ?: return@runCatchingCancellable null
|
||||||
webClient.httpHead(url).use { response ->
|
webClient.httpHead(url).use { response ->
|
||||||
if (response.mimeType?.startsWith("image/") == true) {
|
if (response.mimeType?.startsWith("image/") == true) {
|
||||||
MangaPage(
|
MangaPage(
|
||||||
|
|||||||
Reference in New Issue
Block a user