Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Iken Popular Page #6779

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib-multisrc/iken/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}

baseVersionCode = 5
baseVersionCode = 6
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import eu.kanade.tachiyomi.multisrc.iken.Iken
class PhiliaScans : Iken(
"Philia Scans",
"en",
"https://philiascans.com",
"https://philiascans.org",
)
Loading