cloudstream-extensions-hexated/SoraStream/src/main/kotlin/com/hexated/SoraStreamLite.kt

321 lines
9.9 KiB
Kotlin
Raw Normal View History

2023-01-31 06:30:37 +00:00
package com.hexated
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeAnimes
2023-03-10 22:22:24 +00:00
import com.hexated.SoraExtractor.invokeAsk4Movies
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeDbgo
2023-05-24 08:29:19 +00:00
import com.hexated.SoraExtractor.invokeDreamfilm
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeFilmxy
import com.hexated.SoraExtractor.invokeFlixon
2023-04-17 10:01:08 +00:00
import com.hexated.SoraExtractor.invokeFmovies
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeFwatayako
2023-06-15 23:38:22 +00:00
import com.hexated.SoraExtractor.invokeGoku
2023-02-14 18:01:07 +00:00
import com.hexated.SoraExtractor.invokeGomovies
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeHDMovieBox
import com.hexated.SoraExtractor.invokeIdlix
import com.hexated.SoraExtractor.invokeKimcartoon
import com.hexated.SoraExtractor.invokeKisskh
import com.hexated.SoraExtractor.invokeLing
import com.hexated.SoraExtractor.invokeM4uhd
2023-02-06 04:55:42 +00:00
import com.hexated.SoraExtractor.invokeMovie123Net
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeMovieHab
2023-06-24 04:32:21 +00:00
import com.hexated.SoraExtractor.invokeNavy
2023-04-08 14:14:42 +00:00
import com.hexated.SoraExtractor.invokeNinetv
2023-05-19 23:35:52 +00:00
import com.hexated.SoraExtractor.invokeNowTv
2023-04-11 17:00:54 +00:00
import com.hexated.SoraExtractor.invokePutlocker
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeRStream
2023-06-22 10:05:28 +00:00
import com.hexated.SoraExtractor.invokeRidomovies
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeSeries9
2023-02-06 04:55:42 +00:00
import com.hexated.SoraExtractor.invokeSmashyStream
2023-06-26 05:11:27 +00:00
import com.hexated.SoraExtractor.invokeDumpStream
2023-07-04 09:38:14 +00:00
import com.hexated.SoraExtractor.invokeEmovies
2023-07-07 07:32:57 +00:00
import com.hexated.SoraExtractor.invokeFourCartoon
2023-07-26 07:31:20 +00:00
import com.hexated.SoraExtractor.invokeMultimovies
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeVidSrc
2023-03-13 10:20:00 +00:00
import com.hexated.SoraExtractor.invokeWatchOnline
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeWatchsomuch
import com.hexated.SoraExtractor.invokeXmovies
2023-01-31 06:30:37 +00:00
import com.lagradost.cloudstream3.SubtitleFile
import com.lagradost.cloudstream3.argamap
import com.lagradost.cloudstream3.utils.AppUtils
import com.lagradost.cloudstream3.utils.ExtractorLink
class SoraStreamLite : SoraStream() {
override var name = "SoraStream-Lite"
override suspend fun loadLinks(
data: String,
isCasting: Boolean,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
): Boolean {
val res = AppUtils.parseJson<LinkData>(data)
argamap(
2023-04-11 17:00:54 +00:00
{
invokePutlocker(
res.title,
res.year,
res.season,
res.episode,
callback
)
},
2023-01-31 06:30:37 +00:00
{
2023-02-02 06:51:20 +00:00
invokeWatchsomuch(
res.imdbId,
res.season,
res.episode,
subtitleCallback
)
},
2023-04-22 10:01:28 +00:00
{
2023-06-26 05:11:27 +00:00
invokeDumpStream(
2023-04-22 10:01:28 +00:00
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-04-08 14:14:42 +00:00
{
if (!res.isAnime) invokeNinetv(
res.id,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-01-31 06:30:37 +00:00
{
2023-06-15 23:38:22 +00:00
invokeGoku(res.title, res.year, res.season, res.lastSeason, res.episode, subtitleCallback, callback)
2023-01-31 06:30:37 +00:00
},
{
2023-02-02 06:51:20 +00:00
invokeVidSrc(res.id, res.season, res.episode, subtitleCallback, callback)
2023-01-31 06:30:37 +00:00
},
{
2023-02-02 06:51:20 +00:00
invokeDbgo(res.imdbId, res.season, res.episode, subtitleCallback, callback)
2023-01-31 06:30:37 +00:00
},
2023-02-06 04:55:42 +00:00
{
invokeMovie123Net(
res.title,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-01-31 06:30:37 +00:00
{
2023-02-02 06:51:20 +00:00
invokeMovieHab(res.imdbId, res.season, res.episode, subtitleCallback, callback)
2023-01-31 06:30:37 +00:00
},
{
2023-02-02 06:51:20 +00:00
if (res.isAnime) invokeAnimes(
2023-01-31 06:30:37 +00:00
res.title,
res.epsTitle,
2023-05-22 15:46:24 +00:00
res.date,
res.airedDate,
2023-01-31 06:30:37 +00:00
res.season,
res.episode,
subtitleCallback,
callback
)
},
// {
// if (res.season != null && res.isAnime) invokeCrunchyroll(
// res.title,
// res.epsTitle,
// res.season,
// res.episode,
// subtitleCallback,
// callback
// )
// },
2023-01-31 06:30:37 +00:00
{
2023-02-02 06:51:20 +00:00
if (!res.isAnime) invokeHDMovieBox(
2023-01-31 06:30:37 +00:00
res.title,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-05-24 08:29:19 +00:00
{
if (!res.isAnime) invokeDreamfilm(
res.title,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-01-31 06:30:37 +00:00
{
2023-05-29 18:39:47 +00:00
invokeSeries9(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
2023-01-31 06:30:37 +00:00
},
{
2023-02-02 06:51:20 +00:00
invokeIdlix(
2023-01-31 06:30:37 +00:00
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-03-28 03:45:16 +00:00
// {
// invokeUniqueStream(
// res.title,
// res.year,
// res.season,
// res.episode,
// subtitleCallback,
// callback
// )
// },
2023-01-31 06:30:37 +00:00
{
2023-05-29 18:39:47 +00:00
if (!res.isAnime) invokeFilmxy(
res.imdbId,
res.season,
res.episode,
subtitleCallback,
callback
)
2023-01-31 06:30:37 +00:00
},
{
2023-07-07 07:32:57 +00:00
if(!res.isAnime) invokeKimcartoon(res.title, res.season, res.episode, subtitleCallback, callback)
2023-01-31 06:30:37 +00:00
},
2023-02-06 04:55:42 +00:00
{
2023-05-29 18:39:47 +00:00
invokeSmashyStream(
res.imdbId,
res.season,
res.episode,
res.isAnime,
subtitleCallback,
callback
)
2023-02-06 04:55:42 +00:00
},
2023-07-11 12:07:22 +00:00
// {
// invokeXmovies(
// res.title,
// res.year,
// res.season,
// res.episode,
// subtitleCallback,
// callback
// )
// },
2023-04-17 10:01:08 +00:00
{
2023-05-29 18:39:47 +00:00
if (!res.isAnime) invokeFmovies(
2023-04-17 10:01:08 +00:00
res.title,
res.airedYear ?: res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-01-31 06:30:37 +00:00
{
2023-07-04 09:38:14 +00:00
invokeKisskh(res.title, res.season, res.episode, res.isAnime, res.lastSeason, subtitleCallback, callback)
2023-01-31 06:30:37 +00:00
},
{
2023-02-02 06:51:20 +00:00
invokeLing(
2023-01-31 06:30:37 +00:00
res.title,
res.airedYear ?: res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
2023-02-02 06:51:20 +00:00
invokeFwatayako(res.imdbId, res.season, res.episode, callback)
2023-01-31 06:30:37 +00:00
},
{
2023-02-02 06:51:20 +00:00
invokeM4uhd(
2023-01-31 06:30:37 +00:00
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
2023-02-02 06:51:20 +00:00
invokeRStream(res.id, res.season, res.episode, callback)
2023-01-31 06:30:37 +00:00
},
{
2023-02-02 06:51:20 +00:00
invokeFlixon(res.id, res.imdbId, res.season, res.episode, callback)
2023-01-31 06:30:37 +00:00
},
2023-02-14 18:01:07 +00:00
{
invokeGomovies(res.title, res.year, res.season, res.episode, callback)
},
2023-03-10 22:22:24 +00:00
{
2023-03-12 17:52:09 +00:00
if (!res.isAnime) invokeAsk4Movies(
2023-03-10 22:22:24 +00:00
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-03-13 10:20:00 +00:00
{
invokeWatchOnline(
res.imdbId,
2023-03-13 21:23:30 +00:00
res.id,
2023-03-13 10:20:00 +00:00
res.title,
res.airedYear ?: res.year,
2023-03-13 10:20:00 +00:00
res.season,
res.episode,
2023-03-13 19:13:38 +00:00
subtitleCallback,
2023-03-13 10:20:00 +00:00
callback
)
},
2023-05-19 23:35:52 +00:00
{
2023-06-24 04:32:21 +00:00
if (!res.isAnime) invokeNowTv(res.id, res.season, res.episode, callback)
},
{
invokeNavy(res.imdbId, res.season, res.episode, callback)
2023-06-22 10:05:28 +00:00
},
{
if (res.season == null) invokeRidomovies(
res.title,
res.year,
callback
)
2023-07-04 09:38:14 +00:00
},
{
2023-07-04 12:57:53 +00:00
if (!res.isAnime) invokeEmovies(
2023-07-04 09:38:14 +00:00
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-07-07 07:32:57 +00:00
{
if(!res.isAnime) invokeFourCartoon(
res.title,
res.year,
res.season,
res.episode,
callback
)
2023-07-26 07:31:20 +00:00
},
{
invokeMultimovies(res.title,res.season,res.episode,subtitleCallback,callback)
2023-07-07 07:32:57 +00:00
}
2023-01-31 06:30:37 +00:00
)
return true
}
}