TyrantScans: Enable latestUpdate (#4878)

Enable latestUpdate
This commit is contained in:
David Alysson 2024-09-02 09:12:46 -03:00 committed by Draff
parent 7663887261
commit cad87f7e78
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 6 additions and 7 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.TyrantScans' extClass = '.TyrantScans'
themePkg = 'zeistmanga' themePkg = 'zeistmanga'
baseUrl = 'https://www.tyrantscans.com' baseUrl = 'https://www.tyrantscans.com'
overrideVersionCode = 0 overrideVersionCode = 1
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -1,15 +1,14 @@
package eu.kanade.tachiyomi.extension.pt.tyrantscans package eu.kanade.tachiyomi.extension.pt.tyrantscans
import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
import eu.kanade.tachiyomi.source.model.MangasPage import eu.kanade.tachiyomi.network.GET
import okhttp3.Request import okhttp3.Request
import okhttp3.Response
class TyrantScans : ZeistManga("Tyrant Scans", "https://www.tyrantscans.com", "pt-BR") { class TyrantScans : ZeistManga("Tyrant Scans", "https://www.tyrantscans.com", "pt-BR") {
override val supportsLatest = false override fun popularMangaRequest(page: Int): Request = GET(baseUrl, headers)
override fun popularMangaRequest(page: Int): Request = latestUpdatesRequest(page) override val popularMangaSelector = "#PopularPosts3 article"
override val popularMangaSelectorTitle = "h3 a"
override fun popularMangaParse(response: Response): MangasPage = latestUpdatesParse(response) override val popularMangaSelectorUrl = popularMangaSelectorTitle
} }