master
parent
5047302b8f
commit
4fdaf54b33
|
@ -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-4.1")
|
Log.d("mnemo", "Test-4.2")
|
||||||
|
|
||||||
// // 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(
|
||||||
|
@ -85,8 +85,8 @@ class Upstream : ExtractorApi() {
|
||||||
val regex1 = """\|file\|(\d+)\|(\d+)\|(\w+)\|(\w+)\|(\w+)\|HTTP""".toRegex()
|
val regex1 = """\|file\|(\d+)\|(\d+)\|(\w+)\|(\w+)\|(\w+)\|HTTP""".toRegex()
|
||||||
val matchResult1 = regex1.find(doc)
|
val matchResult1 = regex1.find(doc)
|
||||||
|
|
||||||
// Find the matches in master|9qx7lhanoezn_n|hls2
|
// Find the matches in master|9qx7lhanoezn_n|hls2|
|
||||||
val regex2 = """\|master\|(\w+)\|(\w+)\|sources""".toRegex()
|
val regex2 = """\|master\|(\w+)\|(\w+)\|""".toRegex()
|
||||||
val matchResult2 = regex2.find(doc)
|
val matchResult2 = regex2.find(doc)
|
||||||
|
|
||||||
// Find the matches in sp|10800|bYYSztvRHlImhy_PjVqV91W7EoXRu4LXALz76pLJPFI|m3u8
|
// Find the matches in sp|10800|bYYSztvRHlImhy_PjVqV91W7EoXRu4LXALz76pLJPFI|m3u8
|
||||||
|
@ -98,7 +98,6 @@ class Upstream : ExtractorApi() {
|
||||||
val regex4 = """data\|(\d+)\|(\d+)\|\|hide""".toRegex()
|
val regex4 = """data\|(\d+)\|(\d+)\|\|hide""".toRegex()
|
||||||
val matchResult4 = regex4.find(doc)
|
val matchResult4 = regex4.find(doc)
|
||||||
|
|
||||||
|
|
||||||
if (matchResult1 != null && matchResult2 != null && matchResult3 != null && matchResult4 != null) {
|
if (matchResult1 != null && matchResult2 != null && matchResult3 != null && matchResult4 != null) {
|
||||||
val (n2, n1, tld, domain, subdomain) = matchResult1.destructured
|
val (n2, n1, tld, domain, subdomain) = matchResult1.destructured
|
||||||
var (id,format) = matchResult2.destructured // master|9qx7lhanoezn_n|hls2|sources
|
var (id,format) = matchResult2.destructured // master|9qx7lhanoezn_n|hls2|sources
|
||||||
|
|
Loading…
Reference in New Issue