[Sora] added RStream

This commit is contained in:
hexated 2023-01-05 01:04:11 +07:00
parent a31958c72b
commit 3340a71e1e
2 changed files with 29 additions and 0 deletions

View file

@ -1707,6 +1707,30 @@ object SoraExtractor : SoraStream() {
}
suspend fun invokeRStream(
id: Int? = null,
season: Int? = null,
episode: Int? = null,
callback: (ExtractorLink) -> Unit
) {
val url = if(season == null) {
"$rStreamAPI/Movies/$id/$id.mp4"
} else {
"$rStreamAPI/Shows/$id/$season/$episode.mp4"
}
delay(5000)
callback.invoke(
ExtractorLink(
"RStream",
"RStream",
url,
"https://remotestre.am/",
Qualities.P720.value
)
)
}
}
class StreamM4u : XStreamCdn() {

View file

@ -29,6 +29,7 @@ import com.hexated.SoraExtractor.invokeLing
import com.hexated.SoraExtractor.invokeM4uhd
import com.hexated.SoraExtractor.invokeMoviesbay
import com.hexated.SoraExtractor.invokeMoviezAdd
import com.hexated.SoraExtractor.invokeRStream
import com.hexated.SoraExtractor.invokeTvMovies
import com.hexated.SoraExtractor.invokeUhdmovies
import com.hexated.SoraExtractor.invokeZoro
@ -92,6 +93,7 @@ open class SoraStream : TmdbProvider() {
const val moviezAddAPI = "https://m.bloginguru.info"
const val bollyMazaAPI = "https://b.bloginguru.info"
const val moviesbayAPI = "https://moviesbay.live"
const val rStreamAPI = "https://fsa.remotestre.am"
fun getType(t: String?): TvType {
return when (t) {
@ -510,6 +512,9 @@ open class SoraStream : TmdbProvider() {
res.episode,
callback
)
},
{
invokeRStream(res.id, res.season, res.episode, callback)
}
)