fix buzzheavier

This commit is contained in:
V3u47ZoN 2025-05-01 11:36:16 +00:00 committed by GitHub
parent 821cbc1d59
commit 5372be6ace
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -34,7 +34,9 @@ class BuzzheavierExtractor(
add("Referer", url)
}.build()
val path = client.newCall(GET("$url/download", dlHeaders)).execute().headers["hx-redirect"].orEmpty()
val path = client.newCall(
GET("https://${httpUrl.host}/$id/download", dlHeaders)
).execute().headers["hx-redirect"].orEmpty()
return if (path.isNotEmpty()) {
val videoUrl = if (path.startsWith("http")) path else "https://${httpUrl.host}$path"

View file

@ -1,7 +1,7 @@
ext {
extName = 'Hikari'
extClass = '.Hikari'
extVersionCode = 17
extVersionCode = 18
}
apply from: "$rootDir/common.gradle"

View file

@ -40,11 +40,6 @@ class Hikari : AnimeHttpSource(), ConfigurableAnimeSource {
override val supportsLatest = true
override fun headersBuilder() = super.headersBuilder().apply {
add("Origin", baseUrl)
add("Referer", "$baseUrl/")
}
private val preferences by lazy {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)
}