From 01a1ae5d1cd0f7a53e5ae0a7851c876c223c2c12 Mon Sep 17 00:00:00 2001 From: Creepler13 Date: Tue, 24 Dec 2024 13:00:11 +0100 Subject: [PATCH] Fix Iken Popular Page (#6779) * Fix Iken Popular, remove from Hive * update philliascans url --- lib-multisrc/iken/build.gradle.kts | 2 +- .../src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt | 6 ++---- .../extension/en/infernalvoidscans/HiveScans.kt | 13 ------------- .../extension/en/philiascans/PhiliaScans.kt | 2 +- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/lib-multisrc/iken/build.gradle.kts b/lib-multisrc/iken/build.gradle.kts index b45873b53..ede652be5 100644 --- a/lib-multisrc/iken/build.gradle.kts +++ b/lib-multisrc/iken/build.gradle.kts @@ -2,4 +2,4 @@ plugins { id("lib-multisrc") } -baseVersionCode = 5 +baseVersionCode = 6 diff --git a/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt b/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt index bd5f65c3b..67fc19353 100644 --- a/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt +++ b/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt @@ -53,11 +53,9 @@ abstract class Iken( override fun popularMangaParse(response: Response): MangasPage { val document = response.asJsoup() - val slugs = document.select("div:contains(Popular) + div.swiper div.manga-swipe > a") - .map { it.absUrl("href").substringAfterLast("/series/") } - val entries = slugs.mapNotNull { - titleCache[it]?.toSManga() + val entries = document.select("aside a:has(img)").mapNotNull { + titleCache[it.absUrl("href").substringAfter("series/")]?.toSManga() } return MangasPage(entries, false) diff --git a/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/HiveScans.kt b/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/HiveScans.kt index 03f375bcc..5f18e9c53 100644 --- a/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/HiveScans.kt +++ b/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/HiveScans.kt @@ -1,9 +1,6 @@ package eu.kanade.tachiyomi.extension.en.infernalvoidscans import eu.kanade.tachiyomi.multisrc.iken.Iken -import eu.kanade.tachiyomi.source.model.MangasPage -import eu.kanade.tachiyomi.util.asJsoup -import okhttp3.Response class HiveScans : Iken( "Hive Scans", @@ -25,14 +22,4 @@ class HiveScans : Iken( override fun headersBuilder() = super.headersBuilder() .set("Cache-Control", "max-age=0") - - override fun popularMangaParse(response: Response): MangasPage { - val document = response.asJsoup() - - val entries = document.select(".group a").mapNotNull { - titleCache[it.absUrl("href").substringAfter("series/")]?.toSManga() - } - - return MangasPage(entries, false) - } } diff --git a/src/en/philiascans/src/eu/kanade/tachiyomi/extension/en/philiascans/PhiliaScans.kt b/src/en/philiascans/src/eu/kanade/tachiyomi/extension/en/philiascans/PhiliaScans.kt index c0bd0065e..ae7d7a79d 100644 --- a/src/en/philiascans/src/eu/kanade/tachiyomi/extension/en/philiascans/PhiliaScans.kt +++ b/src/en/philiascans/src/eu/kanade/tachiyomi/extension/en/philiascans/PhiliaScans.kt @@ -5,5 +5,5 @@ import eu.kanade.tachiyomi.multisrc.iken.Iken class PhiliaScans : Iken( "Philia Scans", "en", - "https://philiascans.com", + "https://philiascans.org", )