mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 11:42:47 +01:00
Reaper Scans (FR): Migrate theme (#5678)
This commit is contained in:
parent
69aa93d7d4
commit
1154da0024
@ -1,9 +1,9 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Reaper Scans'
|
extName = 'Reaper Scans'
|
||||||
extClass = '.ReaperScans'
|
extClass = '.ReaperScans'
|
||||||
themePkg = 'madara'
|
themePkg = 'keyoapp'
|
||||||
baseUrl = 'https://reaperscans.fr'
|
baseUrl = 'https://reaper-scans.fr'
|
||||||
overrideVersionCode = 0
|
overrideVersionCode = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -1,34 +1,15 @@
|
|||||||
package eu.kanade.tachiyomi.extension.fr.reaperscans
|
package eu.kanade.tachiyomi.extension.fr.reaperscans
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
import eu.kanade.tachiyomi.multisrc.keyoapp.Keyoapp
|
||||||
import eu.kanade.tachiyomi.source.model.SChapter
|
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
|
||||||
import org.jsoup.nodes.Element
|
|
||||||
import java.text.SimpleDateFormat
|
|
||||||
import java.util.Locale
|
|
||||||
|
|
||||||
class ReaperScans : Madara(
|
class ReaperScans : Keyoapp(
|
||||||
"Reaper Scans",
|
"Reaper Scans",
|
||||||
"https://reaperscans.fr",
|
"https://reaper-scans.fr",
|
||||||
"fr",
|
"fr",
|
||||||
SimpleDateFormat("dd/MM/yyyy", Locale.US),
|
|
||||||
) {
|
) {
|
||||||
// Migrated from WpMangaReader to Madara.
|
|
||||||
override val versionId = 2
|
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
|
// Migrated from Madara to Keyoapp.
|
||||||
val urlElement = element.selectFirst(chapterUrlSelector)!!
|
override val versionId = 4
|
||||||
|
|
||||||
name = urlElement.selectFirst("p.chapter-manhwa-title")?.text()
|
override val cdnUrl = "https://3xfsjdlc.is1.buzz/uploads"
|
||||||
?: urlElement.ownText()
|
|
||||||
date_upload = urlElement.selectFirst("span.chapter-release-date > i")?.text()
|
|
||||||
.let { parseChapterDate(it) }
|
|
||||||
|
|
||||||
val fixedUrl = urlElement.attr("abs:href").toHttpUrl().newBuilder()
|
|
||||||
.removeAllQueryParameters("style")
|
|
||||||
.addQueryParameter("style", "list")
|
|
||||||
.toString()
|
|
||||||
|
|
||||||
setUrlWithoutDomain(fixedUrl)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user