mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
[Sora] added RStream
This commit is contained in:
parent
a31958c72b
commit
3340a71e1e
2 changed files with 29 additions and 0 deletions
|
@ -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() {
|
class StreamM4u : XStreamCdn() {
|
||||||
|
|
|
@ -29,6 +29,7 @@ import com.hexated.SoraExtractor.invokeLing
|
||||||
import com.hexated.SoraExtractor.invokeM4uhd
|
import com.hexated.SoraExtractor.invokeM4uhd
|
||||||
import com.hexated.SoraExtractor.invokeMoviesbay
|
import com.hexated.SoraExtractor.invokeMoviesbay
|
||||||
import com.hexated.SoraExtractor.invokeMoviezAdd
|
import com.hexated.SoraExtractor.invokeMoviezAdd
|
||||||
|
import com.hexated.SoraExtractor.invokeRStream
|
||||||
import com.hexated.SoraExtractor.invokeTvMovies
|
import com.hexated.SoraExtractor.invokeTvMovies
|
||||||
import com.hexated.SoraExtractor.invokeUhdmovies
|
import com.hexated.SoraExtractor.invokeUhdmovies
|
||||||
import com.hexated.SoraExtractor.invokeZoro
|
import com.hexated.SoraExtractor.invokeZoro
|
||||||
|
@ -92,6 +93,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
const val moviezAddAPI = "https://m.bloginguru.info"
|
const val moviezAddAPI = "https://m.bloginguru.info"
|
||||||
const val bollyMazaAPI = "https://b.bloginguru.info"
|
const val bollyMazaAPI = "https://b.bloginguru.info"
|
||||||
const val moviesbayAPI = "https://moviesbay.live"
|
const val moviesbayAPI = "https://moviesbay.live"
|
||||||
|
const val rStreamAPI = "https://fsa.remotestre.am"
|
||||||
|
|
||||||
fun getType(t: String?): TvType {
|
fun getType(t: String?): TvType {
|
||||||
return when (t) {
|
return when (t) {
|
||||||
|
@ -510,6 +512,9 @@ open class SoraStream : TmdbProvider() {
|
||||||
res.episode,
|
res.episode,
|
||||||
callback
|
callback
|
||||||
)
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
invokeRStream(res.id, res.season, res.episode, callback)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue