mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 02:12:42 +01:00
fix: Scan VF (#3395)
* fix Scan VF * increase version code * override function
This commit is contained in:
parent
6216393f98
commit
85393c74c4
@ -208,7 +208,7 @@ constructor(
|
|||||||
|
|
||||||
override fun searchMangaNextPageSelector(): String? = ".pagination a[rel=next]"
|
override fun searchMangaNextPageSelector(): String? = ".pagination a[rel=next]"
|
||||||
|
|
||||||
protected fun parseSearchDirectory(page: Int): MangasPage {
|
protected open fun parseSearchDirectory(page: Int): MangasPage {
|
||||||
val manga = searchDirectory.subList((page - 1) * 24, min(page * 24, searchDirectory.size))
|
val manga = searchDirectory.subList((page - 1) * 24, min(page * 24, searchDirectory.size))
|
||||||
.map {
|
.map {
|
||||||
SManga.create().apply {
|
SManga.create().apply {
|
||||||
|
@ -3,7 +3,7 @@ ext {
|
|||||||
extClass = '.ScanVF'
|
extClass = '.ScanVF'
|
||||||
themePkg = 'mmrcms'
|
themePkg = 'mmrcms'
|
||||||
baseUrl = 'https://www.scan-vf.net'
|
baseUrl = 'https://www.scan-vf.net'
|
||||||
overrideVersionCode = 1
|
overrideVersionCode = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -1,10 +1,28 @@
|
|||||||
package eu.kanade.tachiyomi.extension.fr.scanvf
|
package eu.kanade.tachiyomi.extension.fr.scanvf
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mmrcms.MMRCMS
|
import eu.kanade.tachiyomi.multisrc.mmrcms.MMRCMS
|
||||||
|
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
import kotlin.math.min
|
||||||
|
|
||||||
class ScanVF : MMRCMS(
|
class ScanVF : MMRCMS(
|
||||||
"Scan VF",
|
"Scan VF",
|
||||||
"https://www.scan-vf.net",
|
"https://www.scan-vf.net",
|
||||||
"fr",
|
"fr",
|
||||||
|
itemPath = "",
|
||||||
supportsAdvancedSearch = false,
|
supportsAdvancedSearch = false,
|
||||||
)
|
) {
|
||||||
|
override fun parseSearchDirectory(page: Int): MangasPage {
|
||||||
|
val manga = searchDirectory.subList((page - 1) * 24, min(page * 24, searchDirectory.size))
|
||||||
|
.map {
|
||||||
|
SManga.create().apply {
|
||||||
|
url = "/${it.data}"
|
||||||
|
title = it.value
|
||||||
|
thumbnail_url = guessCover(url, null)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val hasNextPage = (page + 1) * 24 <= searchDirectory.size
|
||||||
|
|
||||||
|
return MangasPage(manga, hasNextPage)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user