Add VF Scan (#19326)
This commit is contained in:
parent
1129d97d43
commit
cae83bf094
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
|
@ -0,0 +1,30 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.fr.vfscan
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
import okhttp3.OkHttpClient
|
||||||
|
import org.jsoup.nodes.Document
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
|
class VFScan : MangaThemesia("VF Scan", "https://www.vfscan.cc", "fr", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.FRENCH)) {
|
||||||
|
override val client: OkHttpClient = super.client.newBuilder()
|
||||||
|
.rateLimit(2, 1, TimeUnit.SECONDS)
|
||||||
|
.build()
|
||||||
|
|
||||||
|
override val seriesAuthorSelector = ".imptdt:contains(Mangaka) i, .fmed b:contains(Mangaka)+span"
|
||||||
|
override val seriesStatusSelector = ".imptdt:contains(Statut) i"
|
||||||
|
override fun String?.parseStatus(): Int = when {
|
||||||
|
this == null -> SManga.UNKNOWN
|
||||||
|
this.contains("En Cours", ignoreCase = true) -> SManga.ONGOING
|
||||||
|
this.contains("Terminé", ignoreCase = true) -> SManga.COMPLETED
|
||||||
|
else -> SManga.UNKNOWN
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun mangaDetailsParse(document: Document): SManga =
|
||||||
|
super.mangaDetailsParse(document).apply {
|
||||||
|
status = document.select(seriesStatusSelector).text().parseStatus()
|
||||||
|
}
|
||||||
|
}
|
|
@ -151,6 +151,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("TukangKomik", "https://tukangkomik.id", "id", overrideVersionCode = 1),
|
SingleLang("TukangKomik", "https://tukangkomik.id", "id", overrideVersionCode = 1),
|
||||||
SingleLang("TurkToon", "https://turktoon.com", "tr"),
|
SingleLang("TurkToon", "https://turktoon.com", "tr"),
|
||||||
SingleLang("Uzay Manga", "https://uzaymanga.com", "tr", overrideVersionCode = 6),
|
SingleLang("Uzay Manga", "https://uzaymanga.com", "tr", overrideVersionCode = 6),
|
||||||
|
SingleLang("VF Scan", "https://www.vfscan.cc", "fr"),
|
||||||
SingleLang("Walpurgi Scan", "https://www.walpurgiscan.it", "it", overrideVersionCode = 7, className = "WalpurgisScan", pkgName = "walpurgisscan"),
|
SingleLang("Walpurgi Scan", "https://www.walpurgiscan.it", "it", overrideVersionCode = 7, className = "WalpurgisScan", pkgName = "walpurgisscan"),
|
||||||
SingleLang("West Manga", "https://westmanga.org", "id", overrideVersionCode = 2),
|
SingleLang("West Manga", "https://westmanga.org", "id", overrideVersionCode = 2),
|
||||||
SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 11),
|
SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 11),
|
||||||
|
|
Loading…
Reference in New Issue