mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-21 18:02: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]"
|
||||
|
||||
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))
|
||||
.map {
|
||||
SManga.create().apply {
|
||||
|
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.ScanVF'
|
||||
themePkg = 'mmrcms'
|
||||
baseUrl = 'https://www.scan-vf.net'
|
||||
overrideVersionCode = 1
|
||||
overrideVersionCode = 2
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -1,10 +1,28 @@
|
||||
package eu.kanade.tachiyomi.extension.fr.scanvf
|
||||
|
||||
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(
|
||||
"Scan VF",
|
||||
"https://www.scan-vf.net",
|
||||
"fr",
|
||||
itemPath = "",
|
||||
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