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:
parent
7408c2e05a
commit
e079bf1f88
|
@ -1,7 +1,8 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Philia Scans'
|
extName = 'Philia Scans'
|
||||||
extClass = '.PhiliaScans'
|
extClass = '.PhiliaScans'
|
||||||
themePkg = 'iken'
|
themePkg = 'madara'
|
||||||
|
baseUrl = "https://philiascans.org"
|
||||||
overrideVersionCode = 0
|
overrideVersionCode = 0
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,37 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.philiascans
|
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",
|
"Philia Scans",
|
||||||
"en",
|
|
||||||
"https://philiascans.org",
|
"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="#"]))"""
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue