master
Swissky 2024-07-01 13:10:34 +02:00
parent 6f55974861
commit 00905bbc1e
1 changed files with 2 additions and 5 deletions

View File

@ -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)