Fix HiAnime pref quality (#420)

* Fix HiAnime pref quality

* Change HiAnime latest update endpoint

---------

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
krysanify 2024-12-10 04:51:07 +08:00 committed by GitHub
parent 515590ecfe
commit f3f1a64fda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View file

@ -3,7 +3,7 @@ ext {
extClass = '.HiAnime'
themePkg = 'zorotheme'
baseUrl = 'https://hianime.to'
overrideVersionCode = 41
overrideVersionCode = 43
}
apply from: "$rootDir/common.gradle"

View file

@ -4,6 +4,8 @@ import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.lib.megacloudextractor.MegaCloudExtractor
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
import eu.kanade.tachiyomi.multisrc.zorotheme.ZoroTheme
import eu.kanade.tachiyomi.network.GET
import okhttp3.Request
class HiAnime : ZoroTheme(
"en",
@ -22,6 +24,8 @@ class HiAnime : ZoroTheme(
private val streamtapeExtractor by lazy { StreamTapeExtractor(client) }
private val megaCloudExtractor by lazy { MegaCloudExtractor(client, headers, preferences) }
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/recently-updated?page=$page", docHeaders)
override fun extractVideo(server: VideoData): List<Video> {
return when (server.name) {
"StreamTape" -> {