Test
parent
6f55974861
commit
00905bbc1e
|
@ -29,7 +29,7 @@ class Voe2 : ExtractorApi() {
|
|||
// Extract the first redirect URL, like https://roberteachfinal.com/e/xxxxxxx
|
||||
val voeDoc = app.get(url, referer = referer).document
|
||||
val redirRegex = """window.location.href = '(.*)'""".toRegex()
|
||||
val redirResult = redirRegex.find(voeDoc)
|
||||
val redirResult = redirRegex.find(voeDoc.html())?.groupValues?.get(1)
|
||||
if (redirResult != null){
|
||||
Log.d("mnemo", redirResult)
|
||||
}
|
||||
|
@ -40,9 +40,6 @@ class Voe2 : ExtractorApi() {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
val res = app.get(url, referer = referer).document
|
||||
val script = res.select("script").find { it.data().contains("sources =") }?.data()
|
||||
val link = Regex("[\"']hls[\"']:\\s*[\"'](.*)[\"']").find(script ?: return)?.groupValues?.get(1)
|
||||
|
|
Loading…
Reference in New Issue