Skip to content

Commit

Permalink
fix vidstreaming extractor (#1393)
Browse files Browse the repository at this point in the history
  • Loading branch information
RowdyRushya authored Oct 25, 2024
1 parent 217cf41 commit 62b3c69
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ object GogoHelper {
"$mainUrl/encrypt-ajax.php?$encryptRequestData",
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
)
val dataencrypted =
jsonResponse.text.substringAfter("{\"data\":\"").substringBefore("\"}")
val dataencrypted = jsonResponse.parsedSafe<GogoJsonData>()?.data ?: return@safeApiCall
val datadecrypted = cryptoHandler(dataencrypted, foundIv, foundDecryptKey, false)
val sources = AppUtils.parseJson<GogoSources>(datadecrypted)

Expand Down Expand Up @@ -155,4 +154,8 @@ object GogoHelper {
@JsonProperty("type") val type: String?,
@JsonProperty("default") val default: String? = null
)

data class GogoJsonData(
@JsonProperty("data") val data: String? = null
)
}

0 comments on commit 62b3c69

Please sign in to comment.