Skip to content

Commit

Permalink
Fix Iken Popular Page (#6779)
Browse files Browse the repository at this point in the history
* Fix Iken Popular, remove from Hive

* update philliascans url
  • Loading branch information
Creepler13 authored Dec 24, 2024
1 parent 01cd9e6 commit 3304957
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
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",
)

0 comments on commit 3304957

Please sign in to comment.