fix: vidhide fails to extract relative urls (#1691)

This commit is contained in:
Bnyro
2025-05-16 01:55:28 +02:00
committed by GitHub
parent 4217a716cd
commit 418da4da7e

View File

@ -62,7 +62,7 @@ open class VidHidePro : ExtractorApi() {
"Sec-Fetch-Dest" to "empty",
"Sec-Fetch-Mode" to "cors",
"Sec-Fetch-Site" to "cross-site",
"Origin" to "$mainUrl/",
"Origin" to mainUrl,
"User-Agent" to USER_AGENT,
)
@ -77,8 +77,8 @@ open class VidHidePro : ExtractorApi() {
Regex(":\\s*\"(.*?m3u8.*?)\"").findAll(script).forEach { m3u8Match ->
generateM3u8(
name,
m3u8Match.groupValues[1],
mainUrl,
fixUrl(m3u8Match.groupValues[1]),
referer = "$mainUrl/",
headers = headers
).forEach(callback)
}