master
Swissky 2024-06-29 21:46:34 +02:00
parent 58016cee29
commit 6ed738e7ac
1 changed files with 5 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class Upstream : ExtractorApi() {
callback: (ExtractorLink) -> Unit callback: (ExtractorLink) -> Unit
) { ) {
Log.d("mnemo", "Upstream extractor enabled") Log.d("mnemo", "Upstream extractor enabled")
Log.d("mnemo", "Test-3") Log.d("mnemo", "Test-4")
// // Bypass ISP blocking with DNS over HTTP to resolve the IP for upstream // // Bypass ISP blocking with DNS over HTTP to resolve the IP for upstream
// val dnsDoc = app.get( // val dnsDoc = app.get(
@ -122,9 +122,10 @@ class Upstream : ExtractorApi() {
Log.d("mnemo", "Testing ${linkUrl}") Log.d("mnemo", "Testing ${linkUrl}")
M3u8Helper.generateM3u8( M3u8Helper.generateM3u8(
this.name, "Upstream", // source
linkUrl.replace("s18.upstreamcdn.co", "51.83.140.60"), linkUrl.replace("s18.upstreamcdn.co", "51.83.140.60"), // streamUrl
"$mainUrl/", "$mainUrl/", // referer
// quality
headers = mapOf( headers = mapOf(
"Host" to "s18.upstreamcdn.co", "Host" to "s18.upstreamcdn.co",
"Origin" to mainUrl "Origin" to mainUrl