From 6c87c1634b0603b6eb5a470093820afc31236d46 Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:43:00 -0500 Subject: [PATCH] ManhwaWeb: Filter out invalid pages (#8457) * filter * simplify condition Co-authored-by: Vetle Ledaal --------- Co-authored-by: Vetle Ledaal --- src/es/manhwaweb/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/es/manhwaweb/ManhwaWeb.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/es/manhwaweb/build.gradle b/src/es/manhwaweb/build.gradle index c3075fc21..f83353e16 100644 --- a/src/es/manhwaweb/build.gradle +++ b/src/es/manhwaweb/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'ManhwaWeb' extClass = '.ManhwaWeb' - extVersionCode = 6 + extVersionCode = 7 isNsfw = true } diff --git a/src/es/manhwaweb/src/eu/kanade/tachiyomi/extension/es/manhwaweb/ManhwaWeb.kt b/src/es/manhwaweb/src/eu/kanade/tachiyomi/extension/es/manhwaweb/ManhwaWeb.kt index da452eca4..eb4bcbe75 100644 --- a/src/es/manhwaweb/src/eu/kanade/tachiyomi/extension/es/manhwaweb/ManhwaWeb.kt +++ b/src/es/manhwaweb/src/eu/kanade/tachiyomi/extension/es/manhwaweb/ManhwaWeb.kt @@ -155,7 +155,7 @@ class ManhwaWeb : HttpSource() { override fun pageListParse(response: Response): List { val result = json.decodeFromString(response.body.string()) - return result.data.images.filter { it.isNotBlank() } + return result.data.images.filter { it.startsWith("http") } .mapIndexed { i, img -> Page(i, imageUrl = img) } }