Fix on OpJAV

This commit is contained in:
Jace 2022-08-29 13:34:56 +08:00
parent 23a56f9daa
commit d2103b3739
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 1
version = 2
cloudstream {

View File

@ -3,6 +3,7 @@ package com.jacekun
import android.util.Log
import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.app
import com.lagradost.cloudstream3.extractors.XStreamCdn
import com.lagradost.cloudstream3.utils.AppUtils.toJson
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
import com.lagradost.cloudstream3.utils.ExtractorLink
@ -215,17 +216,16 @@ class OpJav : MainAPI() {
Log.i(this.name, "Result => (url) $url")
when {
url.contains("opmovie.xyz") -> {
val ext = extractorApis.find { it.mainUrl.contains("embedsito.com") }//XStreamCdn()
if (ext != null) {
//ext.domainUrl = "opmovie.xyz"
ext.getSafeUrl(
XStreamCdn().let {
it.domainUrl = "opmovie.xyz"
it.getSafeUrl(
url = url,
referer = url,
subtitleCallback = subtitleCallback,
callback = callback
)
count++
}
count++
}
else -> {
val success = loadExtractor(