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)
}.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"