master
Swissky 2024-07-01 12:59:54 +02:00
parent 132a33bf6d
commit 6f55974861
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ private const val ARG_PARAM2 = "param2"
* Use the [BlankFragment.newInstance] factory method to
* create an instance of this fragment.
*/
class BlankFragment(val plugin: TestPlugin) : BottomSheetDialogFragment() {
class BlankFragment(val plugin: SflixPlugin) : BottomSheetDialogFragment() {
// TODO: Rename and change types of parameters
private var param1: String? = null
private var param2: String? = null

View File

@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
import org.jsoup.Jsoup
import org.jsoup.nodes.Element
class SflixProvider(val plugin: TestPlugin) : MainAPI() {
class SflixProvider(val plugin: SflixPlugin) : MainAPI() {
// all providers must be an instance of MainAPI
override var mainUrl = "https://sflix.to"
override var name = "Sflix"

View File

@ -27,9 +27,9 @@ class Voe2 : ExtractorApi() {
Log.d("mnemo", "voe.sx loaded")
// Extract the first redirect URL, like https://roberteachfinal.com/e/xxxxxxx
val res = app.get(url, referer = referer).document
val voeDoc = app.get(url, referer = referer).document
val redirRegex = """window.location.href = '(.*)'""".toRegex()
val redirResult = redirRegex.find(doc)
val redirResult = redirRegex.find(voeDoc)
if (redirResult != null){
Log.d("mnemo", redirResult)
}