hikari: fix buzzheavier #969
3 changed files with 4 additions and 7 deletions
|
@ -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"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Hikari'
|
||||
extClass = '.Hikari'
|
||||
extVersionCode = 17
|
||||
extVersionCode = 18
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue