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

856 lines
33 KiB
Kotlin
Raw Normal View History

2022-10-15 15:26:51 +00:00
package com.hexated
import com.fasterxml.jackson.annotation.JsonProperty
2023-08-21 00:55:21 +00:00
import com.hexated.SoraExtractor.invoke2embed
2023-12-30 09:09:19 +00:00
import com.hexated.SoraExtractor.invokeAllMovieland
2023-01-11 01:28:46 +00:00
import com.hexated.SoraExtractor.invokeAnimes
2023-12-15 04:32:48 +00:00
import com.hexated.SoraExtractor.invokeAoneroom
2022-11-02 06:56:24 +00:00
import com.hexated.SoraExtractor.invokeFilmxy
import com.hexated.SoraExtractor.invokeKimcartoon
2022-10-17 05:01:44 +00:00
import com.hexated.SoraExtractor.invokeVidSrc
2022-10-15 15:26:51 +00:00
import com.lagradost.cloudstream3.*
2022-10-27 09:02:40 +00:00
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
2022-10-15 15:26:51 +00:00
import com.lagradost.cloudstream3.metaproviders.TmdbProvider
2023-02-10 17:52:02 +00:00
import com.hexated.SoraExtractor.invokeDahmerMovies
2023-07-31 04:30:48 +00:00
import com.hexated.SoraExtractor.invokeDoomovies
2023-09-21 07:43:38 +00:00
import com.hexated.SoraExtractor.invokeDotmovies
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
2022-12-07 15:06:48 +00:00
import com.hexated.SoraExtractor.invokeFDMovies
2023-01-11 01:28:46 +00:00
import com.hexated.SoraExtractor.invokeFlixon
2023-06-15 23:38:22 +00:00
import com.hexated.SoraExtractor.invokeGoku
2022-12-14 09:35:04 +00:00
import com.hexated.SoraExtractor.invokeKisskh
2022-11-19 04:37:28 +00:00
import com.hexated.SoraExtractor.invokeLing
import com.hexated.SoraExtractor.invokeM4uhd
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-01-04 18:04:11 +00:00
import com.hexated.SoraExtractor.invokeRStream
2023-06-22 10:05:28 +00:00
import com.hexated.SoraExtractor.invokeRidomovies
2023-01-21 06:25:04 +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
import com.hexated.SoraExtractor.invokeHdmovies4u
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-08 01:32:01 +00:00
import com.hexated.SoraExtractor.invokeShowflix
2022-12-10 12:25:28 +00:00
import com.hexated.SoraExtractor.invokeTvMovies
import com.hexated.SoraExtractor.invokeUhdmovies
2023-09-13 07:58:52 +00:00
import com.hexated.SoraExtractor.invokeVegamovies
2023-08-18 21:35:24 +00:00
import com.hexated.SoraExtractor.invokeVidsrcto
2023-12-09 23:38:31 +00:00
import com.hexated.SoraExtractor.invokeCinemaTv
2024-01-21 12:39:02 +00:00
import com.hexated.SoraExtractor.invokeMoflix
2024-01-25 01:33:20 +00:00
import com.hexated.SoraExtractor.invokeGhostx
2024-02-12 13:06:53 +00:00
import com.hexated.SoraExtractor.invokeNepu
2023-12-24 09:09:45 +00:00
import com.hexated.SoraExtractor.invokeWatchCartoon
2023-02-02 06:51:20 +00:00
import com.hexated.SoraExtractor.invokeWatchsomuch
2024-02-12 13:06:53 +00:00
import com.hexated.SoraExtractor.invokeZoechip
2023-09-18 07:36:12 +00:00
import com.hexated.SoraExtractor.invokeZshow
2023-08-10 18:40:02 +00:00
import com.lagradost.cloudstream3.LoadResponse.Companion.addImdbId
import com.lagradost.cloudstream3.LoadResponse.Companion.addTMDbId
2023-12-30 09:09:19 +00:00
import com.lagradost.cloudstream3.network.CloudflareKiller
2022-10-15 15:26:51 +00:00
import com.lagradost.cloudstream3.utils.AppUtils.parseJson
import com.lagradost.cloudstream3.utils.AppUtils.toJson
import com.lagradost.cloudstream3.utils.ExtractorLink
import kotlin.math.roundToInt
2022-10-17 04:24:09 +00:00
open class SoraStream : TmdbProvider() {
2022-10-15 15:26:51 +00:00
override var name = "SoraStream"
override val hasMainPage = true
override val instantLinkLoading = true
override val useMetaLoadResponse = true
2023-02-01 17:27:45 +00:00
override val hasQuickSearch = true
2022-10-15 15:26:51 +00:00
override val supportedTypes = setOf(
2024-01-07 19:17:40 +00:00
TvType.Movie,
TvType.TvSeries,
TvType.Anime,
2022-10-15 15:26:51 +00:00
)
2024-01-16 08:56:30 +00:00
val wpRedisInterceptor by lazy { CloudflareKiller() }
2023-12-30 09:09:19 +00:00
2022-10-15 15:26:51 +00:00
/** AUTHOR : Hexated & Sora */
companion object {
2023-03-10 22:22:24 +00:00
/** TOOLS */
2022-10-15 15:26:51 +00:00
private const val tmdbAPI = "https://api.themoviedb.org/3"
2023-05-14 20:24:49 +00:00
const val gdbot = "https://gdtot.pro"
2023-05-22 15:46:24 +00:00
const val anilistAPI = "https://graphql.anilist.co"
2023-05-29 03:34:57 +00:00
const val malsyncAPI = "https://api.malsync.moe"
2023-08-21 00:55:21 +00:00
const val jikanAPI = "https://api.jikan.moe/v4"
2023-10-27 12:46:01 +00:00
private const val apiKey = BuildConfig.TMDB_API
2023-01-29 03:29:15 +00:00
2023-03-10 22:22:24 +00:00
/** ALL SOURCES */
2023-08-21 00:55:21 +00:00
const val twoEmbedAPI = "https://www.2embed.cc"
2023-10-27 19:23:05 +00:00
const val vidSrcAPI = "https://vidsrc.me"
2023-05-24 08:29:19 +00:00
const val dreamfilmAPI = "https://dreamfilmsw.net"
2022-10-29 19:32:17 +00:00
const val noverseAPI = "https://www.nollyverse.com"
2022-11-02 06:56:24 +00:00
const val filmxyAPI = "https://www.filmxy.vip"
const val kimcartoonAPI = "https://kimcartoon.li"
2023-07-23 18:05:02 +00:00
const val aniwatchAPI = "https://aniwatch.to"
2024-01-12 07:17:54 +00:00
const val aniwaveAPI = "https://aniwave.to"
2023-05-21 13:20:19 +00:00
const val crunchyrollAPI = "https://beta-api.crunchyroll.com"
2023-04-17 10:01:08 +00:00
const val kissKhAPI = "https://kisskh.co"
2022-11-19 04:37:28 +00:00
const val lingAPI = "https://ling-online.net"
2024-02-10 21:21:01 +00:00
const val m4uhdAPI = "https://m4umv.org"
2023-10-11 15:47:03 +00:00
const val rStreamAPI = "https://remotestream.cc"
2023-06-05 09:46:05 +00:00
const val flixonAPI = "https://flixon.lol"
2023-01-21 06:25:04 +00:00
const val smashyStreamAPI = "https://embed.smashystream.com"
2023-02-06 04:55:42 +00:00
const val watchSomuchAPI = "https://watchsomuch.tv" // sub only
2023-12-17 23:16:58 +00:00
const val cinemaTvAPI = BuildConfig.CINEMATV_API
2023-11-08 21:34:56 +00:00
const val nineTvAPI = "https://moviesapi.club"
2023-05-19 23:35:52 +00:00
const val nowTvAPI = "https://myfilestorage.xyz"
2023-06-15 23:38:22 +00:00
const val gokuAPI = "https://goku.sx"
2023-12-10 03:12:41 +00:00
const val zshowAPI = BuildConfig.ZSHOW_API
2024-01-11 11:49:11 +00:00
const val ridomoviesAPI = "https://ridomovies.tv"
2023-07-04 09:38:14 +00:00
const val emoviesAPI = "https://emovies.si"
2023-12-15 04:32:48 +00:00
const val multimoviesAPI = "https://multimovies.top"
const val multimovies2API = "https://multimovies.click"
2023-09-26 05:45:33 +00:00
const val netmoviesAPI = "https://netmovies.to"
2023-12-30 09:09:19 +00:00
const val allmovielandAPI = "https://allmovieland.fun"
2023-07-31 04:30:48 +00:00
const val doomoviesAPI = "https://doomovies.net"
2023-08-18 21:35:24 +00:00
const val vidsrctoAPI = "https://vidsrc.to"
2023-08-20 06:21:50 +00:00
const val dramadayAPI = "https://dramaday.me"
2023-08-21 00:55:21 +00:00
const val animetoshoAPI = "https://animetosho.org"
2024-02-12 13:06:53 +00:00
const val showflixAPI = "https://showflix.lol"
2023-12-15 04:32:48 +00:00
const val aoneroomAPI = "https://api3.aoneroom.com"
2024-01-02 23:57:41 +00:00
const val mMoviesAPI = "https://multimovies.uno"
2023-12-24 09:09:45 +00:00
const val watchCartoonAPI = "https://www1.watchcartoononline.bz"
2024-01-21 12:39:02 +00:00
const val moflixAPI = "https://moflix-stream.xyz"
2024-01-30 14:47:49 +00:00
const val moviefictionAPI = "https://moviefiction.com"
2024-02-12 13:06:53 +00:00
const val zoechipAPI = "https://zoechip.org"
const val nepuAPI = "https://nepu.to"
2023-12-24 00:57:10 +00:00
const val fdMoviesAPI = "https://freedrivemovie.com"
const val uhdmoviesAPI = "https://uhdmovies.asia"
const val hdmovies4uAPI = "https://hdmovies4u.day"
const val vegaMoviesAPI = "https://vegamovies.ong"
const val dotmoviesAPI = "https://dotmovies.one"
2023-11-21 19:36:59 +00:00
const val tvMoviesAPI = "https://www.tvseriesnmovies.com"
2023-11-16 11:05:39 +00:00
const val dahmerMoviesAPI = "https://odd-bird-1319.zwuhygoaqe.workers.dev"
2023-04-28 17:25:17 +00:00
2022-10-15 15:26:51 +00:00
fun getType(t: String?): TvType {
return when (t) {
"movie" -> TvType.Movie
else -> TvType.TvSeries
}
}
fun getStatus(t: String?): ShowStatus {
return when (t) {
"Returning Series" -> ShowStatus.Ongoing
else -> ShowStatus.Completed
}
}
2022-10-17 06:32:34 +00:00
2022-10-15 15:26:51 +00:00
}
override val mainPage = mainPageOf(
2024-01-07 19:17:40 +00:00
"$tmdbAPI/trending/all/day?api_key=$apiKey&region=US" to "Trending",
"$tmdbAPI/movie/popular?api_key=$apiKey&region=US" to "Popular Movies",
"$tmdbAPI/tv/popular?api_key=$apiKey&region=US&with_original_language=en" to "Popular TV Shows",
"$tmdbAPI/tv/airing_today?api_key=$apiKey&region=US&with_original_language=en" to "Airing Today TV Shows",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=213" to "Netflix",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=1024" to "Amazon",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=2739" to "Disney+",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=453" to "Hulu",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=2552" to "Apple TV+",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=49" to "HBO",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=4330" to "Paramount+",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=3353" to "Peacock",
"$tmdbAPI/movie/top_rated?api_key=$apiKey&region=US" to "Top Rated Movies",
"$tmdbAPI/tv/top_rated?api_key=$apiKey&region=US" to "Top Rated TV Shows",
"$tmdbAPI/movie/upcoming?api_key=$apiKey&region=US" to "Upcoming Movies",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_original_language=ko" to "Korean Shows",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_keywords=210024|222243&sort_by=popularity.desc&air_date.lte=${getDate().today}&air_date.gte=${getDate().today}" to "Airing Today Anime",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_keywords=210024|222243&sort_by=popularity.desc&air_date.lte=${getDate().nextWeek}&air_date.gte=${getDate().today}" to "On The Air Anime",
"$tmdbAPI/discover/tv?api_key=$apiKey&with_keywords=210024|222243" to "Anime",
"$tmdbAPI/discover/movie?api_key=$apiKey&with_keywords=210024|222243" to "Anime Movies",
2022-10-15 15:26:51 +00:00
)
private fun getImageUrl(link: String?): String? {
if (link == null) return null
return if (link.startsWith("/")) "https://image.tmdb.org/t/p/w500/$link" else link
}
2022-11-03 06:36:36 +00:00
private fun getOriImageUrl(link: String?): String? {
if (link == null) return null
return if (link.startsWith("/")) "https://image.tmdb.org/t/p/original/$link" else link
}
2024-01-02 23:57:41 +00:00
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
2024-01-07 19:17:40 +00:00
val adultQuery =
if (settingsForProvider.enableAdult) "" else "&without_keywords=190370|13059|226161|195669"
2022-10-15 15:26:51 +00:00
val type = if (request.data.contains("/movie")) "movie" else "tv"
2024-01-07 19:17:40 +00:00
val home = app.get("${request.data}$adultQuery&page=$page")
.parsedSafe<Results>()?.results?.mapNotNull { media ->
2024-01-12 07:17:54 +00:00
media.toSearchResponse(type)
} ?: throw ErrorLoadingException("Invalid Json reponse")
2022-10-15 15:26:51 +00:00
return newHomePageResponse(request.name, home)
}
private fun Media.toSearchResponse(type: String? = null): SearchResponse? {
return newMovieSearchResponse(
2024-01-07 19:17:40 +00:00
title ?: name ?: originalTitle ?: return null,
Data(id = id, type = mediaType ?: type).toJson(),
TvType.Movie,
2022-10-15 15:26:51 +00:00
) {
this.posterUrl = getImageUrl(posterPath)
}
}
2023-02-01 17:27:45 +00:00
override suspend fun quickSearch(query: String): List<SearchResponse>? = search(query)
override suspend fun search(query: String): List<SearchResponse>? {
2024-01-07 19:17:40 +00:00
return app.get("$tmdbAPI/search/multi?api_key=$apiKey&language=en-US&query=$query&page=1&include_adult=${settingsForProvider.enableAdult}")
.parsedSafe<Results>()?.results?.mapNotNull { media ->
2024-01-12 07:17:54 +00:00
media.toSearchResponse()
}
2022-10-19 21:46:22 +00:00
}
2022-10-15 15:26:51 +00:00
override suspend fun load(url: String): LoadResponse? {
val data = parseJson<Data>(url)
2022-11-22 07:43:11 +00:00
val type = getType(data.type)
2023-05-02 19:45:23 +00:00
val append = "alternative_titles,credits,external_ids,keywords,videos,recommendations"
2022-12-07 15:06:48 +00:00
val resUrl = if (type == TvType.Movie) {
2023-05-02 19:45:23 +00:00
"$tmdbAPI/movie/${data.id}?api_key=$apiKey&append_to_response=$append"
2022-11-22 07:43:11 +00:00
} else {
2023-05-02 19:45:23 +00:00
"$tmdbAPI/tv/${data.id}?api_key=$apiKey&append_to_response=$append"
2022-11-22 07:43:11 +00:00
}
2022-12-07 15:06:48 +00:00
val res = app.get(resUrl).parsedSafe<MediaDetail>()
2024-01-07 19:17:40 +00:00
?: throw ErrorLoadingException("Invalid Json Response")
2022-10-19 21:46:22 +00:00
2022-11-04 15:54:25 +00:00
val title = res.title ?: res.name ?: return null
2022-11-26 21:25:36 +00:00
val poster = getOriImageUrl(res.posterPath)
val bgPoster = getOriImageUrl(res.backdropPath)
2022-11-04 15:54:25 +00:00
val orgTitle = res.originalTitle ?: res.originalName ?: return null
2023-06-22 01:26:45 +00:00
val releaseDate = res.releaseDate ?: res.firstAirDate
val year = releaseDate?.split("-")?.first()?.toIntOrNull()
2022-11-24 06:27:52 +00:00
val rating = res.vote_average.toString().toRatingInt()
2022-11-19 04:37:28 +00:00
val genres = res.genres?.mapNotNull { it.name }
2023-12-17 23:16:58 +00:00
val isCartoon = genres?.contains("Animation") ?: false
val isAnime = isCartoon && (res.original_language == "zh" || res.original_language == "ja")
2023-08-20 06:21:50 +00:00
val isAsian = !isAnime && (res.original_language == "zh" || res.original_language == "ko")
2023-09-21 07:43:38 +00:00
val isBollywood = res.production_countries?.any { it.name == "India" } ?: false
2023-12-17 23:16:58 +00:00
2024-01-07 19:17:40 +00:00
val keywords = res.keywords?.results?.mapNotNull { it.name }.orEmpty()
.ifEmpty { res.keywords?.keywords?.mapNotNull { it.name } }
2022-11-04 15:54:25 +00:00
2022-11-22 07:43:11 +00:00
val actors = res.credits?.cast?.mapNotNull { cast ->
2024-01-07 19:17:40 +00:00
ActorData(
Actor(
cast.name ?: cast.originalName
?: return@mapNotNull null, getImageUrl(cast.profilePath)
), roleString = cast.character
)
2022-10-15 15:26:51 +00:00
} ?: return null
2024-01-07 19:17:40 +00:00
val recommendations =
res.recommendations?.results?.mapNotNull { media -> media.toSearchResponse() }
2022-10-15 15:26:51 +00:00
2024-01-16 08:56:30 +00:00
val trailer = res.videos?.results?.map { "https://www.youtube.com/watch?v=${it.key}" }
2022-10-27 09:02:40 +00:00
2022-10-15 15:26:51 +00:00
return if (type == TvType.TvSeries) {
2023-02-21 20:40:08 +00:00
val lastSeason = res.last_episode_to_air?.season_number
2022-12-23 12:02:01 +00:00
val episodes = res.seasons?.mapNotNull { season ->
2024-01-07 19:17:40 +00:00
app.get("$tmdbAPI/${data.type}/${data.id}/season/${season.seasonNumber}?api_key=$apiKey")
.parsedSafe<MediaDetailEpisodes>()?.episodes?.map { eps ->
2024-01-12 07:17:54 +00:00
Episode(
LinkData(
data.id,
res.external_ids?.imdb_id,
res.external_ids?.tvdb_id,
data.type,
eps.seasonNumber,
eps.episodeNumber,
title = title,
year = season.airDate?.split("-")?.first()?.toIntOrNull(),
orgTitle = orgTitle,
isAnime = isAnime,
airedYear = year,
lastSeason = lastSeason,
epsTitle = eps.name,
jpTitle = res.alternative_titles?.results?.find { it.iso_3166_1 == "JP" }?.title,
date = season.airDate,
airedDate = res.releaseDate
?: res.firstAirDate,
isAsian = isAsian,
isBollywood = isBollywood,
isCartoon = isCartoon
).toJson(),
2024-01-12 07:50:58 +00:00
name = eps.name + if (isUpcoming(eps.airDate)) " • [UPCOMING]" else "",
2024-01-12 07:17:54 +00:00
season = eps.seasonNumber,
episode = eps.episodeNumber,
posterUrl = getImageUrl(eps.stillPath),
rating = eps.voteAverage?.times(10)?.roundToInt(),
description = eps.overview
).apply {
this.addDate(eps.airDate)
}
2022-10-15 15:26:51 +00:00
}
2022-12-23 12:02:01 +00:00
}?.flatten() ?: listOf()
2024-01-07 19:17:40 +00:00
newTvSeriesLoadResponse(
title,
url,
if (isAnime) TvType.Anime else TvType.TvSeries,
episodes
) {
2022-11-19 04:37:28 +00:00
this.posterUrl = poster
2022-11-26 21:25:36 +00:00
this.backgroundPosterUrl = bgPoster
2022-10-30 05:29:18 +00:00
this.year = year
2022-10-15 15:26:51 +00:00
this.plot = res.overview
2024-01-12 07:27:43 +00:00
this.tags = keywords.takeIf { !it.isNullOrEmpty() } ?: genres
2022-11-24 06:27:52 +00:00
this.rating = rating
2022-10-15 15:26:51 +00:00
this.showStatus = getStatus(res.status)
this.recommendations = recommendations
this.actors = actors
this.contentRating = fetchContentRating(data.id, "US")
2022-10-27 09:02:40 +00:00
addTrailer(trailer)
2023-08-10 18:40:02 +00:00
addTMDbId(data.id.toString())
addImdbId(res.external_ids?.imdb_id)
2022-10-15 15:26:51 +00:00
}
} else {
newMovieLoadResponse(
2024-01-07 19:17:40 +00:00
title,
url,
TvType.Movie,
LinkData(
data.id,
res.external_ids?.imdb_id,
res.external_ids?.tvdb_id,
data.type,
title = title,
year = year,
orgTitle = orgTitle,
isAnime = isAnime,
jpTitle = res.alternative_titles?.results?.find { it.iso_3166_1 == "JP" }?.title,
airedDate = res.releaseDate
?: res.firstAirDate,
isAsian = isAsian,
isBollywood = isBollywood
).toJson(),
2022-10-15 15:26:51 +00:00
) {
2022-11-19 04:37:28 +00:00
this.posterUrl = poster
2022-11-26 21:25:36 +00:00
this.backgroundPosterUrl = bgPoster
2023-06-22 01:26:45 +00:00
this.comingSoon = isUpcoming(releaseDate)
2022-10-30 05:29:18 +00:00
this.year = year
2022-10-15 15:26:51 +00:00
this.plot = res.overview
this.duration = res.runtime
2024-01-12 07:27:43 +00:00
this.tags = keywords.takeIf { !it.isNullOrEmpty() } ?: genres
2022-11-24 06:27:52 +00:00
this.rating = rating
2022-10-15 15:26:51 +00:00
this.recommendations = recommendations
this.actors = actors
this.contentRating = fetchContentRating(data.id, "US")
2022-10-27 09:02:40 +00:00
addTrailer(trailer)
2023-08-10 18:40:02 +00:00
addTMDbId(data.id.toString())
addImdbId(res.external_ids?.imdb_id)
2022-10-15 15:26:51 +00:00
}
}
}
2024-01-07 19:17:40 +00:00
override suspend fun loadLinks(
data: String,
isCasting: Boolean,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
): Boolean {
2022-10-15 15:26:51 +00:00
val res = parseJson<LinkData>(data)
2022-10-17 03:47:46 +00:00
argamap(
2024-01-07 19:17:40 +00:00
{
invokeDumpStream(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
invokeGoku(
res.title,
res.year,
res.season,
res.lastSeason,
res.episode,
subtitleCallback,
callback
)
},
{
invokeVidSrc(res.id, res.season, res.episode, callback)
},
{
if (!res.isAnime) invokeAoneroom(
res.title, res.airedYear
?: res.year, res.season, res.episode, subtitleCallback, callback
)
},
{
if (res.isAnime) invokeAnimes(
res.title,
res.epsTitle,
res.date,
res.airedDate,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invokeDreamfilm(
res.title,
res.season,
res.episode,
subtitleCallback,
callback
)
},
2023-03-28 03:45:16 +00:00
// {
// invokeNoverse(res.title, res.season, res.episode, callback)
2023-03-28 03:45:16 +00:00
// },
2024-01-07 19:17:40 +00:00
{
if (!res.isAnime) invokeFilmxy(
res.imdbId,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime && res.isCartoon) invokeKimcartoon(
res.title,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime && res.isCartoon) invokeWatchCartoon(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invokeVidsrcto(
res.imdbId,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (res.isAsian || res.isAnime) invokeKisskh(
res.title,
res.season,
res.episode,
res.isAnime,
res.lastSeason,
subtitleCallback,
callback
)
},
{
2024-01-25 01:33:20 +00:00
if (!res.isAnime) invokeGhostx(
2024-01-07 19:17:40 +00:00
res.title,
res.year,
res.season,
res.episode,
callback
)
},
{
if (!res.isAnime) invokeLing(
res.title, res.airedYear
?: res.year, res.season, res.episode, subtitleCallback, callback
)
},
{
if (!res.isAnime) invokeUhdmovies(
res.title,
res.year,
res.season,
res.episode,
callback
)
},
{
if (!res.isAnime) invokeFDMovies(res.title, res.season, res.episode, callback)
},
{
if (!res.isAnime) invokeM4uhd(
res.title, res.airedYear
?: res.year, res.season, res.episode, subtitleCallback, callback
)
},
{
if (!res.isAnime) invokeTvMovies(res.title, res.season, res.episode, callback)
},
{
if (!res.isAnime) invokeRStream(res.id, res.season, res.episode, callback)
},
{
if (!res.isAnime) invokeFlixon(
res.id,
res.imdbId,
res.season,
res.episode,
callback
)
},
{
if (!res.isAnime) invokeSmashyStream(
2024-01-25 07:56:40 +00:00
res.id,
2024-01-07 19:17:40 +00:00
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invokeWatchsomuch(
res.imdbId,
res.season,
res.episode,
subtitleCallback
)
},
{
if (!res.isAnime) invokeNinetv(
res.id,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
invokeDahmerMovies(res.title, res.year, res.season, res.episode, callback)
},
{
invokeCinemaTv(
res.imdbId, res.title, res.airedYear
?: res.year, res.season, res.episode, subtitleCallback, callback
)
},
{
if (!res.isAnime) invokeNowTv(res.id, res.imdbId, res.season, res.episode, callback)
},
{
2024-01-12 07:17:54 +00:00
if (!res.isAnime) invokeRidomovies(
res.id,
res.imdbId,
res.season,
res.episode,
subtitleCallback,
callback
)
2024-01-07 19:17:40 +00:00
},
{
if (!res.isAnime) invokeAllMovieland(res.imdbId, res.season, res.episode, callback)
},
{
if (!res.isAnime) invokeEmovies(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invokeVegamovies(
res.title,
res.year,
res.season,
res.lastSeason,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime && res.isBollywood) invokeDotmovies(
res.title,
res.year,
res.season,
res.lastSeason,
res.episode,
subtitleCallback,
callback
)
},
{
if (res.isBollywood) invokeMultimovies(
multimoviesAPI,
res.title,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (res.isBollywood) invokeMultimovies(
multimovies2API,
res.title,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
invokeNetmovies(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime && res.season == null) invokeDoomovies(
res.title,
subtitleCallback,
callback
)
},
{
if (res.isAsian) invokeDramaday(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invoke2embed(
res.imdbId,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invokeHdmovies4u(
res.title,
res.imdbId,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
invokeZshow(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invokeShowflix(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
2024-01-21 17:36:28 +00:00
if (!res.isAnime) invokeMoflix(res.id, res.season, res.episode, callback)
2024-01-07 19:17:40 +00:00
},
2024-01-30 14:47:49 +00:00
{
2024-02-12 13:06:53 +00:00
if (!res.isAnime) invokeZoechip(res.title, res.year, res.season, res.episode, callback)
2024-01-30 14:47:49 +00:00
},
2024-02-12 13:06:53 +00:00
{
if (!res.isAnime) invokeNepu(
res.title,
res.airedYear ?: res.year,
res.season,
res.episode,
callback
)
}
2022-10-27 08:46:19 +00:00
)
2022-10-15 15:26:51 +00:00
return true
}
2023-01-31 06:30:37 +00:00
data class LinkData(
2024-01-07 19:17:40 +00:00
val id: Int? = null,
val imdbId: String? = null,
val tvdbId: Int? = null,
val type: String? = null,
val season: Int? = null,
val episode: Int? = null,
val aniId: String? = null,
val animeId: String? = null,
val title: String? = null,
val year: Int? = null,
val orgTitle: String? = null,
val isAnime: Boolean = false,
val airedYear: Int? = null,
val lastSeason: Int? = null,
val epsTitle: String? = null,
val jpTitle: String? = null,
val date: String? = null,
val airedDate: String? = null,
val isAsian: Boolean = false,
val isBollywood: Boolean = false,
val isCartoon: Boolean = false,
2022-10-15 15:26:51 +00:00
)
data class Data(
2024-01-07 19:17:40 +00:00
val id: Int? = null,
val type: String? = null,
val aniId: String? = null,
val malId: Int? = null,
2022-10-15 15:26:51 +00:00
)
data class Results(
2024-01-07 19:17:40 +00:00
@JsonProperty("results") val results: ArrayList<Media>? = arrayListOf(),
2022-10-15 15:26:51 +00:00
)
data class Media(
2024-01-07 19:17:40 +00:00
@JsonProperty("id") val id: Int? = null,
@JsonProperty("name") val name: String? = null,
@JsonProperty("title") val title: String? = null,
@JsonProperty("original_title") val originalTitle: String? = null,
@JsonProperty("media_type") val mediaType: String? = null,
@JsonProperty("poster_path") val posterPath: String? = null,
2022-10-15 15:26:51 +00:00
)
data class Genres(
2024-01-07 19:17:40 +00:00
@JsonProperty("id") val id: Int? = null,
@JsonProperty("name") val name: String? = null,
2022-10-15 15:26:51 +00:00
)
2023-01-01 14:03:35 +00:00
data class Keywords(
2024-01-07 19:17:40 +00:00
@JsonProperty("id") val id: Int? = null,
@JsonProperty("name") val name: String? = null,
2023-01-01 14:03:35 +00:00
)
data class KeywordResults(
2024-01-07 19:17:40 +00:00
@JsonProperty("results") val results: ArrayList<Keywords>? = arrayListOf(),
@JsonProperty("keywords") val keywords: ArrayList<Keywords>? = arrayListOf(),
2023-01-01 14:03:35 +00:00
)
2022-10-15 15:26:51 +00:00
data class Seasons(
2024-01-07 19:17:40 +00:00
@JsonProperty("id") val id: Int? = null,
@JsonProperty("name") val name: String? = null,
@JsonProperty("season_number") val seasonNumber: Int? = null,
@JsonProperty("air_date") val airDate: String? = null,
2022-10-15 15:26:51 +00:00
)
data class Cast(
2024-01-07 19:17:40 +00:00
@JsonProperty("id") val id: Int? = null,
@JsonProperty("name") val name: String? = null,
@JsonProperty("original_name") val originalName: String? = null,
@JsonProperty("character") val character: String? = null,
@JsonProperty("known_for_department") val knownForDepartment: String? = null,
@JsonProperty("profile_path") val profilePath: String? = null,
2022-10-15 15:26:51 +00:00
)
data class Episodes(
2024-01-07 19:17:40 +00:00
@JsonProperty("id") val id: Int? = null,
@JsonProperty("name") val name: String? = null,
@JsonProperty("overview") val overview: String? = null,
@JsonProperty("air_date") val airDate: String? = null,
@JsonProperty("still_path") val stillPath: String? = null,
@JsonProperty("vote_average") val voteAverage: Double? = null,
@JsonProperty("episode_number") val episodeNumber: Int? = null,
@JsonProperty("season_number") val seasonNumber: Int? = null,
2022-10-15 15:26:51 +00:00
)
data class MediaDetailEpisodes(
2024-01-07 19:17:40 +00:00
@JsonProperty("episodes") val episodes: ArrayList<Episodes>? = arrayListOf(),
2022-10-15 15:26:51 +00:00
)
2022-10-27 09:02:40 +00:00
data class Trailers(
2024-01-07 19:17:40 +00:00
@JsonProperty("key") val key: String? = null,
2022-10-27 09:02:40 +00:00
)
data class ResultsTrailer(
2024-01-07 19:17:40 +00:00
@JsonProperty("results") val results: ArrayList<Trailers>? = arrayListOf(),
2022-10-27 09:02:40 +00:00
)
2023-05-02 19:45:23 +00:00
data class AltTitles(
2024-01-07 19:17:40 +00:00
@JsonProperty("iso_3166_1") val iso_3166_1: String? = null,
@JsonProperty("title") val title: String? = null,
@JsonProperty("type") val type: String? = null,
2023-05-02 19:45:23 +00:00
)
data class ResultsAltTitles(
2024-01-07 19:17:40 +00:00
@JsonProperty("results") val results: ArrayList<AltTitles>? = arrayListOf(),
2023-05-02 19:45:23 +00:00
)
2022-11-22 07:43:11 +00:00
data class ExternalIds(
2024-01-07 19:17:40 +00:00
@JsonProperty("imdb_id") val imdb_id: String? = null,
@JsonProperty("tvdb_id") val tvdb_id: Int? = null,
2022-11-22 07:43:11 +00:00
)
data class Credits(
2024-01-07 19:17:40 +00:00
@JsonProperty("cast") val cast: ArrayList<Cast>? = arrayListOf(),
2022-11-22 07:43:11 +00:00
)
data class ResultsRecommendations(
2024-01-07 19:17:40 +00:00
@JsonProperty("results") val results: ArrayList<Media>? = arrayListOf(),
2022-11-22 07:43:11 +00:00
)
2023-02-21 20:40:08 +00:00
data class LastEpisodeToAir(
2024-01-07 19:17:40 +00:00
@JsonProperty("episode_number") val episode_number: Int? = null,
@JsonProperty("season_number") val season_number: Int? = null,
2023-02-21 20:40:08 +00:00
)
2023-09-21 07:43:38 +00:00
data class ProductionCountries(
2024-01-07 19:17:40 +00:00
@JsonProperty("name") val name: String? = null,
2023-09-21 07:43:38 +00:00
)
2022-10-15 15:26:51 +00:00
data class MediaDetail(
2024-01-07 19:17:40 +00:00
@JsonProperty("id") val id: Int? = null,
@JsonProperty("imdb_id") val imdbId: String? = null,
@JsonProperty("title") val title: String? = null,
@JsonProperty("name") val name: String? = null,
@JsonProperty("original_title") val originalTitle: String? = null,
@JsonProperty("original_name") val originalName: String? = null,
@JsonProperty("poster_path") val posterPath: String? = null,
@JsonProperty("backdrop_path") val backdropPath: String? = null,
@JsonProperty("release_date") val releaseDate: String? = null,
@JsonProperty("first_air_date") val firstAirDate: String? = null,
@JsonProperty("overview") val overview: String? = null,
@JsonProperty("runtime") val runtime: Int? = null,
@JsonProperty("vote_average") val vote_average: Any? = null,
@JsonProperty("original_language") val original_language: String? = null,
@JsonProperty("status") val status: String? = null,
@JsonProperty("genres") val genres: ArrayList<Genres>? = arrayListOf(),
@JsonProperty("keywords") val keywords: KeywordResults? = null,
@JsonProperty("last_episode_to_air") val last_episode_to_air: LastEpisodeToAir? = null,
@JsonProperty("seasons") val seasons: ArrayList<Seasons>? = arrayListOf(),
@JsonProperty("videos") val videos: ResultsTrailer? = null,
@JsonProperty("external_ids") val external_ids: ExternalIds? = null,
@JsonProperty("credits") val credits: Credits? = null,
@JsonProperty("recommendations") val recommendations: ResultsRecommendations? = null,
@JsonProperty("alternative_titles") val alternative_titles: ResultsAltTitles? = null,
@JsonProperty("production_countries") val production_countries: ArrayList<ProductionCountries>? = arrayListOf(),
2022-10-15 15:26:51 +00:00
)
}