diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 2a564c55..9d5a62fc 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -2579,6 +2579,7 @@ object SoraExtractor : SoraStream() { episode: Int? = null, callback: (ExtractorLink) -> Unit, ) { + val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode) val query = if (season == null) { title } else { @@ -2618,7 +2619,7 @@ object SoraExtractor : SoraStream() { media.third, gomoviesAPI ) - ).document.selectFirst("div#g_MXOzFGouZrOAUioXjpddqkZK a:nth-child($episode)") + ).document.selectFirst("div#g_MXOzFGouZrOAUioXjpddqkZK a:contains(Episode $episodeSlug:)") ?.attr("href") } ?: return diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt index b3003c97..25208634 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt @@ -53,6 +53,7 @@ import com.hexated.SoraExtractor.invokeUhdmovies import com.hexated.SoraExtractor.invokeVitoenMovies import com.hexated.SoraExtractor.invokeWatchsomuch import com.hexated.SoraExtractor.invokeXtrememovies +import com.lagradost.cloudstream3.extractors.VidSrcExtractor import com.lagradost.cloudstream3.utils.AppUtils.parseJson import com.lagradost.cloudstream3.utils.AppUtils.toJson import com.lagradost.cloudstream3.utils.ExtractorLink @@ -341,6 +342,11 @@ open class SoraStream : TmdbProvider() { } } + override suspend fun extractorVerifierJob(extractorData: String?) { + if (extractorData == null) return + VidSrcExtractor.validatePass(extractorData) + } + override suspend fun loadLinks( data: String, isCasting: Boolean,