mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed #283
This commit is contained in:
parent
ac88eca039
commit
e61c1b63c5
2 changed files with 4 additions and 10 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue