master
Swissky 2024-06-29 22:04:21 +02:00
parent 5047302b8f
commit 4fdaf54b33
1 changed files with 3 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class Upstream : ExtractorApi() {
callback: (ExtractorLink) -> Unit
) {
Log.d("mnemo", "Upstream extractor enabled")
Log.d("mnemo", "Test-4.1")
Log.d("mnemo", "Test-4.2")
// // Bypass ISP blocking with DNS over HTTP to resolve the IP for upstream
// val dnsDoc = app.get(
@ -85,8 +85,8 @@ class Upstream : ExtractorApi() {
val regex1 = """\|file\|(\d+)\|(\d+)\|(\w+)\|(\w+)\|(\w+)\|HTTP""".toRegex()
val matchResult1 = regex1.find(doc)
// Find the matches in master|9qx7lhanoezn_n|hls2
val regex2 = """\|master\|(\w+)\|(\w+)\|sources""".toRegex()
// Find the matches in master|9qx7lhanoezn_n|hls2|
val regex2 = """\|master\|(\w+)\|(\w+)\|""".toRegex()
val matchResult2 = regex2.find(doc)
// Find the matches in sp|10800|bYYSztvRHlImhy_PjVqV91W7EoXRu4LXALz76pLJPFI|m3u8
@ -98,7 +98,6 @@ class Upstream : ExtractorApi() {
val regex4 = """data\|(\d+)\|(\d+)\|\|hide""".toRegex()
val matchResult4 = regex4.find(doc)
if (matchResult1 != null && matchResult2 != null && matchResult3 != null && matchResult4 != null) {
val (n2, n1, tld, domain, subdomain) = matchResult1.destructured
var (id,format) = matchResult2.destructured // master|9qx7lhanoezn_n|hls2|sources