Fix Iken Popular Page (#6779)
* Fix Iken Popular, remove from Hive * update philliascans url
This commit is contained in:
parent
c97115f9ba
commit
01a1ae5d1c
|
@ -2,4 +2,4 @@ plugins {
|
||||||
id("lib-multisrc")
|
id("lib-multisrc")
|
||||||
}
|
}
|
||||||
|
|
||||||
baseVersionCode = 5
|
baseVersionCode = 6
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue