This commit is contained in:
helo 2023-10-09 17:18:37 +07:00
parent ac88eca039
commit e61c1b63c5
2 changed files with 4 additions and 10 deletions

View file

@ -1,12 +1,6 @@
package com.hexated
import com.lagradost.cloudstream3.SubtitleFile
import com.lagradost.cloudstream3.apmap
import com.lagradost.cloudstream3.app
import com.lagradost.cloudstream3.fixUrl
import com.lagradost.cloudstream3.mainPageOf
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.loadExtractor
class Ngefilm : Gomov() {
override var mainUrl = "https://nge-film21.cyou"

View file

@ -1330,7 +1330,7 @@ object SoraExtractor : SoraStream() {
val script = if (scriptData.size == 1) {
scriptData.firstOrNull()
} else {
scriptData.find {
scriptData.find { it.first.equals("$title ($year)", true) } ?: scriptData.find {
it.first.contains(
"$title", true
) && it.second == "$year"
@ -1347,10 +1347,10 @@ object SoraExtractor : SoraStream() {
val m4uData = if (season == null) {
doc.select("div.le-server span").map { it.attr("data") }
} else {
val episodeData =
doc.selectFirst("div.col-lg-9.col-xl-9 p:matches((?i)S$seasonSlug-E$episodeSlug)")
val idepisode =
doc.selectFirst("div.detail > p:matches((?i)S$seasonSlug-E$episodeSlug) button")
?.attr("idepisode")
?: return
val idepisode = episodeData.select("button").attr("idepisode") ?: return
val requestEmbed = app.post(
"$referer/ajaxtv", data = mapOf(
"idepisode" to idepisode, "_token" to "$token"