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

@ -2,7 +2,7 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 3
baseVersionCode = 4
dependencies {
api(project(":lib:megacloud-extractor"))

View file

@ -48,7 +48,7 @@ abstract class ZoroTheme(
.clearOldHosts()
}
private val docHeaders = headers.newBuilder().apply {
protected val docHeaders = headers.newBuilder().apply {
add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8")
add("Host", baseUrl.toHttpUrl().host)
add("Referer", "$baseUrl/")
@ -236,6 +236,7 @@ abstract class ZoroTheme(
}.flatten()
return embedLinks.parallelCatchingFlatMap(::extractVideo)
.sort()
}
abstract fun extractVideo(server: VideoData): List<Video>