Philliascans change to madara (#7648)

* Philliascans change to madara

* Bump versionID

* lint

* Update src/en/philiascans/src/eu/kanade/tachiyomi/extension/en/philiascans/PhiliaScans.kt

---------

Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
This commit is contained in:
Creepler13 2025-02-16 10:31:28 +01:00 committed by Draff
parent 7408c2e05a
commit e079bf1f88
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 34 additions and 5 deletions

View File

@ -1,7 +1,8 @@
ext {
extName = 'Philia Scans'
extClass = '.PhiliaScans'
themePkg = 'iken'
themePkg = 'madara'
baseUrl = "https://philiascans.org"
overrideVersionCode = 0
isNsfw = false
}

View File

@ -1,9 +1,37 @@
package eu.kanade.tachiyomi.extension.en.philiascans
import eu.kanade.tachiyomi.multisrc.iken.Iken
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
class PhiliaScans : Iken(
class PhiliaScans : Madara(
"Philia Scans",
"en",
"https://philiascans.org",
)
"en",
SimpleDateFormat("dd/MMM", Locale.US),
) {
override val versionId: Int = 2
override val useNewChapterEndpoint = true
override fun popularMangaRequest(page: Int): Request {
val url = baseUrl.toHttpUrl().newBuilder().apply {
addQueryParameter("post_type", "wp-manga")
addQueryParameter("m_orderby", "views")
}.build()
return GET(url, headers)
}
override fun latestUpdatesRequest(page: Int): Request {
val url = baseUrl.toHttpUrl().newBuilder().apply {
addQueryParameter("post_type", "wp-manga")
addQueryParameter("m_orderby", "latest")
}.build()
return GET(url, headers)
}
// needed to exclude paid chapters
override fun chapterListSelector(): String = """li.wp-manga-chapter:not(:has(a[href="#"]))"""
}