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

311 lines
9.5 KiB
Kotlin
Raw Normal View History

2023-01-31 06:30:37 +00:00
package com.hexated
2023-08-21 00:55:21 +00:00
import com.hexated.SoraExtractor.invoke2embed
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeAnimes
2023-10-03 16:47:31 +00:00
import com.hexated.SoraExtractor.invokeBlackvid
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeDbgo
2023-07-31 04:30:48 +00:00
import com.hexated.SoraExtractor.invokeDoomovies
2023-08-20 06:21:50 +00:00
import com.hexated.SoraExtractor.invokeDramaday
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-06-15 23:38:22 +00:00
import com.hexated.SoraExtractor.invokeGoku
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeKimcartoon
import com.hexated.SoraExtractor.invokeKisskh
import com.hexated.SoraExtractor.invokeLing
import com.hexated.SoraExtractor.invokeM4uhd
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-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-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-28 21:41:04 +00:00
import com.hexated.SoraExtractor.invokeMoment
2023-07-26 07:31:20 +00:00
import com.hexated.SoraExtractor.invokeMultimovies
2023-07-27 14:38:45 +00:00
import com.hexated.SoraExtractor.invokeNetmovies
2023-10-14 10:15:09 +00:00
import com.hexated.SoraExtractor.invokeSFMovies
2023-10-08 01:32:01 +00:00
import com.hexated.SoraExtractor.invokeShowflix
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeVidSrc
2023-08-18 21:35:24 +00:00
import com.hexated.SoraExtractor.invokeVidsrcto
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
2023-09-18 07:36:12 +00:00
import com.hexated.SoraExtractor.invokeZshow
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-10-03 16:47:31 +00:00
{
if (!res.isAnime) invokeBlackvid(
res.id,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-01-31 06:30:37 +00:00
{
2023-09-23 03:28:11 +00:00
if (!res.isAnime) invokeWatchsomuch(
2023-02-02 06:51:20 +00:00
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-07-27 14:38:45 +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-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
)
},
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
if (!res.isAnime) invokeFilmxy(
res.imdbId,
res.season,
res.episode,
subtitleCallback,
callback
)
2023-01-31 06:30:37 +00:00
},
{
2023-07-27 14:38:45 +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-09-23 03:28:11 +00:00
if (!res.isAnime) invokeSmashyStream(
2023-12-08 21:10:52 +00:00
res.imdbId,
2023-05-29 18:39:47 +00:00
res.season,
res.episode,
subtitleCallback,
callback
)
2023-02-06 04:55:42 +00:00
},
2023-04-17 10:01:08 +00:00
{
2023-08-18 21:35:24 +00:00
if (!res.isAnime) invokeVidsrcto(
res.imdbId,
2023-04-17 10:01:08 +00:00
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-01-31 06:30:37 +00:00
{
2023-07-27 14:38:45 +00:00
invokeKisskh(
res.title,
res.season,
res.episode,
res.isAnime,
res.lastSeason,
subtitleCallback,
callback
)
2023-01-31 06:30:37 +00:00
},
{
2023-09-23 03:28:11 +00:00
if (!res.isAnime) invokeLing(
2023-01-31 06:30:37 +00:00
res.title,
res.airedYear ?: res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
2023-09-09 12:16:04 +00:00
if(!res.isAnime) invokeM4uhd(
2023-01-31 06:30:37 +00:00
res.title,
2023-09-10 09:34:33 +00:00
res.airedYear ?: res.year,
2023-01-31 06:30:37 +00:00
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
2023-09-23 03:28:11 +00:00
if (!res.isAnime) invokeRStream(res.id, res.season, res.episode, callback)
},
{
if (!res.isAnime) invokeFlixon(res.id, res.imdbId, res.season, res.episode, callback)
2023-01-31 06:30:37 +00:00
},
2023-03-13 10:20:00 +00:00
{
invokeWatchOnline(
res.imdbId,
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-11-15 10:35:11 +00:00
if (!res.isAnime) invokeNowTv(res.id, res.imdbId, res.season, res.episode, callback)
2023-06-24 04:32:21 +00:00
},
{
invokeNavy(res.imdbId, res.season, res.episode, callback)
2023-06-22 10:05:28 +00:00
},
{
2023-09-26 05:45:33 +00:00
if (!res.isAnime && res.season == null) invokeRidomovies(
2023-10-22 09:52:23 +00:00
res.id,
res.imdbId,
2023-06-22 10:05:28 +00:00
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-26 07:31:20 +00:00
{
2023-07-27 14:38:45 +00:00
invokeMultimovies(res.title, res.season, res.episode, subtitleCallback, callback)
},
{
invokeNetmovies(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
2023-07-28 21:41:04 +00:00
},
{
invokeMoment(res.imdbId, res.season, res.episode, callback)
},
2023-07-31 04:30:48 +00:00
{
if (!res.isAnime && res.season == null) invokeDoomovies(
res.title,
subtitleCallback,
callback
)
},
2023-08-20 06:21:50 +00:00
{
if(res.isAsian) invokeDramaday(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
2023-08-21 00:55:21 +00:00
},
{
if(!res.isAnime) invoke2embed(
res.imdbId,
res.season,
res.episode,
2023-10-27 10:03:06 +00:00
subtitleCallback,
2023-08-21 00:55:21 +00:00
callback
)
},
2023-09-18 07:36:12 +00:00
{
invokeZshow(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
2023-10-08 01:32:01 +00:00
},
{
if (!res.isAnime) invokeShowflix(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-10-14 10:15:09 +00:00
{
if(!res.isAnime) invokeSFMovies(
res.id,
res.title,
res.airedYear ?: res.year,
res.season,
res.episode,
callback
)
}
2023-01-31 06:30:37 +00:00
)
return true
}
}