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 { ext {
extName = 'L Scans' extName = 'L Scans'
extClass = '.LScans' extClass = '.LScans'
themePkg = 'madara' themePkg = 'peachscan'
baseUrl = 'https://lscans.com' baseUrl = 'https://lscans.com'
overrideVersionCode = 0 overrideVersionCode = 28
isNsfw = false isNsfw = false
} }

View File

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