Skip to content

Commit

Permalink
Update CineStreamUtils.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
SaurabhKaperwan committed Nov 20, 2024
1 parent 71674ce commit 8bf59f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CineStream/src/main/kotlin/com/megix/CineStreamUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import okhttp3.FormBody
import org.jsoup.nodes.Document
import java.net.*
import com.lagradost.cloudstream3.utils.AppUtils.parseJson
import com.lagradost.nicehttp.NiceResponse
import kotlinx.coroutines.delay

suspend fun NFBypass(mainUrl : String): String {
val homePageDocument = app.get("${mainUrl}/home").document
val addHash = homePageDocument.select("body").attr("data-addhash")
var verificationUrl = "https://raw.githubusercontent.com/SaurabhKaperwan/Utils/refs/heads/main/NF.json"
verificationUrl = app.get(verificationUrl).parsed<VerifyUrl>().url.replace("###", addHash)
verificationUrl = app.get(verificationUrl).parsed<NFVerifyUrl>().url.replace("###", addHash)
val hashDigits = addHash.filter { it.isDigit() }
val first16Digits = hashDigits.take(16)
app.get("${verificationUrl}&t=0.${first16Digits}")
Expand Down

0 comments on commit 8bf59f5

Please sign in to comment.