forked from AlmightyHak/extensions-source
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:
parent
515590ecfe
commit
f3f1a64fda
4 changed files with 8 additions and 3 deletions
|
@ -2,7 +2,7 @@ plugins {
|
|||
id("lib-multisrc")
|
||||
}
|
||||
|
||||
baseVersionCode = 3
|
||||
baseVersionCode = 4
|
||||
|
||||
dependencies {
|
||||
api(project(":lib:megacloud-extractor"))
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue