mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
forgot yo 💀
This commit is contained in:
parent
d5eede04c5
commit
8f9794563d
3 changed files with 4 additions and 17 deletions
|
@ -1,9 +1,7 @@
|
||||||
package com.anon
|
package com.anon
|
||||||
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.extractors.DoodLaExtractor
|
import com.lagradost.cloudstream3.extractors.DoodLaExtractor
|
||||||
import com.lagradost.cloudstream3.utils.*
|
import com.lagradost.cloudstream3.utils.*
|
||||||
|
@ -12,20 +10,16 @@ import com.lagradost.nicehttp.Requests
|
||||||
import com.lagradost.nicehttp.Session
|
import com.lagradost.nicehttp.Session
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.network.WebViewResolver
|
import com.lagradost.cloudstream3.network.WebViewResolver
|
||||||
import com.lagradost.nicehttp.requestCreator
|
import com.lagradost.nicehttp.requestCreator
|
||||||
|
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
import java.util.regex.Pattern
|
import java.util.regex.Pattern
|
||||||
import okhttp3.Interceptor
|
import okhttp3.Interceptor
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
|
|
||||||
import okhttp3.MediaType.Companion.toMediaTypeOrNull
|
import okhttp3.MediaType.Companion.toMediaTypeOrNull
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||||
import com.lagradost.nicehttp.RequestBodyTypes
|
import com.lagradost.nicehttp.RequestBodyTypes
|
||||||
import okhttp3.RequestBody.Companion.toRequestBody
|
import okhttp3.RequestBody.Companion.toRequestBody
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.extractors.helper.AesHelper.cryptoAESHandler
|
import com.lagradost.cloudstream3.extractors.helper.AesHelper.cryptoAESHandler
|
||||||
|
|
||||||
class AnimeDekhoProvider : MainAPI() {
|
class AnimeDekhoProvider : MainAPI() {
|
||||||
|
@ -85,12 +79,10 @@ class AnimeDekhoProvider : MainAPI() {
|
||||||
val poster = document?.selectFirst("div.post-thumbnail figure img")?.attr("src") ?: "null"
|
val poster = document?.selectFirst("div.post-thumbnail figure img")?.attr("src") ?: "null"
|
||||||
val plot = document?.selectFirst("div.entry-content p")?.text()?.trim() ?: "null"
|
val plot = document?.selectFirst("div.entry-content p")?.text()?.trim() ?: "null"
|
||||||
val year = document?.selectFirst("span.year")?.text()?.trim()?.toInt() ?: 1990
|
val year = document?.selectFirst("span.year")?.text()?.trim()?.toInt() ?: 1990
|
||||||
|
|
||||||
var episodes = mutableListOf<Episode>()
|
var episodes = mutableListOf<Episode>()
|
||||||
|
|
||||||
val items = document.select("ul.seasons-lst li").mapNotNull {
|
val items = document.select("ul.seasons-lst li").mapNotNull {
|
||||||
val name = it?.selectFirst("h3.title")?.text() ?: "null"
|
val name = it?.selectFirst("h3.title")?.text() ?: "null"
|
||||||
|
|
||||||
val tempstring = it?.selectFirst("a")?.attr("href") ?: "null"
|
val tempstring = it?.selectFirst("a")?.attr("href") ?: "null"
|
||||||
|
|
||||||
episodes.add( Episode(tempstring, name) )
|
episodes.add( Episode(tempstring, name) )
|
||||||
|
@ -106,6 +98,7 @@ class AnimeDekhoProvider : MainAPI() {
|
||||||
//this.recommendations = recommendations
|
//this.recommendations = recommendations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else{
|
||||||
return newTvSeriesLoadResponse(title, url, TvType.TvSeries, episodes) {
|
return newTvSeriesLoadResponse(title, url, TvType.TvSeries, episodes) {
|
||||||
this.posterUrl = poster.toString()
|
this.posterUrl = poster.toString()
|
||||||
|
@ -113,8 +106,7 @@ class AnimeDekhoProvider : MainAPI() {
|
||||||
this.year = year
|
this.year = year
|
||||||
//this.recommendations = recommendations
|
//this.recommendations = recommendations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun loadLinks(
|
override suspend fun loadLinks(
|
||||||
|
@ -142,15 +134,10 @@ class AnimeDekhoProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Log.d("TAGNAME", "vidlink $vidlink") //https://vidxstream.xyz/v/H0Rh3ixVLJKk/
|
//Log.d("TAGNAME", "vidlink $vidlink") //https://vidxstream.xyz/v/H0Rh3ixVLJKk/
|
||||||
|
|
||||||
val body = app.get(vidlink).text
|
val body = app.get(vidlink).text
|
||||||
|
|
||||||
val master = Regex("""JScript[\w+]?\s*=\s*'([^']+)""").find(body)!!.groupValues?.get(1)
|
val master = Regex("""JScript[\w+]?\s*=\s*'([^']+)""").find(body)!!.groupValues?.get(1)
|
||||||
|
|
||||||
val decrypt = cryptoAESHandler(master ?: return false, "4MmH9EsZrq0WEekn".toByteArray(), false)?.replace("\\", "") ?: "ERROR"
|
val decrypt = cryptoAESHandler(master ?: return false, "4MmH9EsZrq0WEekn".toByteArray(), false)?.replace("\\", "") ?: "ERROR"
|
||||||
|
|
||||||
val vidfinal = Regex("""file:\s*\"(https:[^\"]+)\"""").find(decrypt)!!.groupValues?.get(1)
|
val vidfinal = Regex("""file:\s*\"(https:[^\"]+)\"""").find(decrypt)!!.groupValues?.get(1)
|
||||||
|
|
||||||
|
|
||||||
val headers = mapOf(
|
val headers = mapOf(
|
||||||
"accept" to "*/*",
|
"accept" to "*/*",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 26
|
version = 27
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import org.jsoup.nodes.Element
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
|
||||||
open class YomoviesProvider : MainAPI() {
|
open class YomoviesProvider : MainAPI() {
|
||||||
override var mainUrl = "https://yomovies.boo"
|
override var mainUrl = "https://yomovies.fit"
|
||||||
private var directUrl = ""
|
private var directUrl = ""
|
||||||
override var name = "Yomovies"
|
override var name = "Yomovies"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue