Fix name
parent
93a9ee910f
commit
e215eb72dd
|
@ -19,7 +19,7 @@ import org.jsoup.Jsoup
|
|||
class ExampleProvider(val plugin: TestPlugin) : MainAPI() {
|
||||
// all providers must be an instance of MainAPI
|
||||
override var mainUrl = "https://sflix.to"
|
||||
override var name = "Mnemosyne"
|
||||
override var name = "Sflix"
|
||||
override val supportedTypes = setOf(TvType.Movie, TvType.TvSeries, TvType.Anime)
|
||||
override var lang = "en"
|
||||
|
||||
|
|
|
@ -52,15 +52,16 @@ class Upstream : ExtractorApi() {
|
|||
) {
|
||||
Log.d("mnemo", "Upstream extractor enabled")
|
||||
|
||||
|
||||
// Bypass ISP blocking with DNS over HTTP to resolve the IP for upstream
|
||||
// curl -H "accept: application/dns-json" "https://cloudflare-dns.com/dns-query?name=upstream.to&type=A" | jq -r '.Answer.[].data'
|
||||
Log.d("mnemo", "DoH start")
|
||||
val dnsDoc = app.get(
|
||||
"https://cloudflare-dns.com/dns-query?name=upstream.to&type=A",
|
||||
headers = mapOf(
|
||||
"x-accept" to "application/dns-json"
|
||||
)
|
||||
).text
|
||||
Log.d("mnemo", "DoH stop")
|
||||
|
||||
// Parse JSON string to ApiResponse object
|
||||
val apiResponse = Json.decodeFromString<ApiResponse>(dnsDoc)
|
||||
|
|
Loading…
Reference in New Issue