LScans: Migrate theme (#5470)

Migrate theme
This commit is contained in:
Chopper 2024-10-11 08:29:39 -03:00 committed by Draff
parent 23e2192290
commit 2451072c34
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 11 additions and 9 deletions

View File

@ -1,9 +1,9 @@
ext {
extName = 'L Scans'
extClass = '.LScans'
themePkg = 'madara'
themePkg = 'peachscan'
baseUrl = 'https://lscans.com'
overrideVersionCode = 0
overrideVersionCode = 28
isNsfw = false
}

View File

@ -1,15 +1,17 @@
package eu.kanade.tachiyomi.extension.pt.lscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
import eu.kanade.tachiyomi.multisrc.peachscan.PeachScan
import eu.kanade.tachiyomi.network.interceptor.rateLimit
class LScans : Madara(
class LScans : PeachScan(
"L Scans",
"https://lscans.com",
"pt-BR",
dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
) {
override val useLoadMoreRequest = LoadMoreStrategy.Always
override val useNewChapterEndpoint = true
// Moved from Madara to PeachScan
override val versionId = 2
override val client = super.client.newBuilder()
.rateLimit(3)
.build()
}