forked from AlmightyHak/extensions-source
fix buzzheavier (#969)
This commit is contained in:
parent
7b73c023a6
commit
2f53d6b581
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue