From 2beef52dd5d73e3124f60236cb162fe898f83eb4 Mon Sep 17 00:00:00 2001 From: Yush0DAN <157328957+Yush0DAN@users.noreply.github.com> Date: Sat, 22 Jun 2024 01:43:55 -0600 Subject: [PATCH] ManhwaWeb: Filter out chapters without url (#3694) fix chapter null --- 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 af8e3f406..017c320e7 100644 --- a/src/es/manhwaweb/build.gradle +++ b/src/es/manhwaweb/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'ManhwaWeb' extClass = '.ManhwaWeb' - extVersionCode = 3 + extVersionCode = 4 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 13329e48f..bf0aa6916 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 @@ -132,7 +132,7 @@ class ManhwaWeb : HttpSource() { override fun chapterListParse(response: Response): List { val result = json.decodeFromString(response.body.string()) - val chapters = result.chapters.map { it.toSChapter() } + val chapters = result.chapters.filterNot { it.espUrl == null && it.rawUrl == null }.map { it.toSChapter() } return chapters.sortedByDescending { it.chapter_number } }