fix buzzheavier (#969)

This commit is contained in:
V3u47ZoN 2025-05-01 11:47:41 +00:00 committed by GitHub
parent 7b73c023a6
commit 2f53d6b581
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) add("Referer", url)
}.build() }.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()) { return if (path.isNotEmpty()) {
val videoUrl = if (path.startsWith("http")) path else "https://${httpUrl.host}$path" val videoUrl = if (path.startsWith("http")) path else "https://${httpUrl.host}$path"

View file

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

View file

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