Fix Iken Popular Page (#6779)

* Fix Iken Popular, remove from Hive

* update philliascans url
This commit is contained in:
Creepler13 2024-12-24 13:00:11 +01:00 committed by Draff
parent c97115f9ba
commit 01a1ae5d1c
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
4 changed files with 4 additions and 19 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc") id("lib-multisrc")
} }
baseVersionCode = 5 baseVersionCode = 6

View File

@ -53,11 +53,9 @@ abstract class Iken(
override fun popularMangaParse(response: Response): MangasPage { override fun popularMangaParse(response: Response): MangasPage {
val document = response.asJsoup() 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 { val entries = document.select("aside a:has(img)").mapNotNull {
titleCache[it]?.toSManga() titleCache[it.absUrl("href").substringAfter("series/")]?.toSManga()
} }
return MangasPage(entries, false) return MangasPage(entries, false)

View File

@ -1,9 +1,6 @@
package eu.kanade.tachiyomi.extension.en.infernalvoidscans package eu.kanade.tachiyomi.extension.en.infernalvoidscans
import eu.kanade.tachiyomi.multisrc.iken.Iken 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( class HiveScans : Iken(
"Hive Scans", "Hive Scans",
@ -25,14 +22,4 @@ class HiveScans : Iken(
override fun headersBuilder() = super.headersBuilder() override fun headersBuilder() = super.headersBuilder()
.set("Cache-Control", "max-age=0") .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)
}
} }

View File

@ -5,5 +5,5 @@ import eu.kanade.tachiyomi.multisrc.iken.Iken
class PhiliaScans : Iken( class PhiliaScans : Iken(
"Philia Scans", "Philia Scans",
"en", "en",
"https://philiascans.com", "https://philiascans.org",
) )