2022-10-15 15:26:51 +00:00
|
|
|
package com.hexated
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty
|
2022-10-18 00:20:30 +00:00
|
|
|
import com.hexated.SoraExtractor.invoke123Movie
|
2023-01-11 01:28:46 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeAnimes
|
2023-03-10 22:22:24 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeAsk4Movies
|
2023-02-06 04:55:42 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeBlackmovies
|
2023-01-04 17:45:21 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeBollyMaza
|
2023-02-07 03:07:14 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeCodexmovies
|
2023-03-06 01:27:16 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeCrunchyroll
|
2022-10-17 08:03:20 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeDbgo
|
2022-11-02 06:56:24 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeFilmxy
|
2022-10-27 08:46:19 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeHDMovieBox
|
2022-10-28 03:57:14 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeIdlix
|
2022-11-07 10:16:02 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeKimcartoon
|
2022-10-18 16:16:43 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeMovieHab
|
2022-10-29 19:32:17 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeNoverse
|
2022-10-27 08:46:19 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeSeries9
|
2022-10-17 04:24:09 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeTwoEmbed
|
2022-11-01 04:37:30 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeUniqueStream
|
2022-10-17 05:01:44 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeVidSrc
|
2022-11-12 12:08:52 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeXmovies
|
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-02-07 16:45:21 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeEdithxmovies
|
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
|
2022-11-22 13:50:37 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeFwatayako
|
2022-12-02 16:50:56 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeGMovies
|
2023-03-01 20:18:32 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeGdbotMovies
|
2023-02-18 14:56:08 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeGomovies
|
2023-02-19 19:57:29 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeJmdkhMovies
|
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
|
2022-12-09 08:44:01 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeM4uhd
|
2023-02-06 04:55:42 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeMovie123Net
|
2022-12-29 02:48:08 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeMoviesbay
|
|
|
|
import com.hexated.SoraExtractor.invokeMoviezAdd
|
2023-02-10 08:36:06 +00:00
|
|
|
import com.hexated.SoraExtractor.invokePapaonMovies1
|
|
|
|
import com.hexated.SoraExtractor.invokePapaonMovies2
|
2023-01-04 18:04:11 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeRStream
|
2023-02-07 03:07:14 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeRinzrymovies
|
2023-02-21 09:02:45 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeRubyMovies
|
|
|
|
import com.hexated.SoraExtractor.invokeShinobiMovies
|
2023-01-21 06:25:04 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeSmashyStream
|
2023-01-08 20:23:44 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeSoraStream
|
2023-02-19 14:49:44 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeTgarMovies
|
2022-12-10 12:25:28 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeTvMovies
|
2022-11-21 10:27:07 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeUhdmovies
|
2023-02-21 09:02:45 +00:00
|
|
|
import com.hexated.SoraExtractor.invokeVitoenMovies
|
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-02-25 23:28:25 +00:00
|
|
|
import com.lagradost.cloudstream3.extractors.VidSrcExtractor
|
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(
|
|
|
|
TvType.Movie,
|
|
|
|
TvType.TvSeries,
|
|
|
|
TvType.Anime,
|
|
|
|
)
|
|
|
|
|
|
|
|
/** 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"
|
2022-11-18 11:00:36 +00:00
|
|
|
const val tmdb2mal = "https://tmdb2mal.slidemovies.org"
|
2023-01-11 08:08:53 +00:00
|
|
|
const val jikanAPI = "https://api.jikan.moe/v4"
|
2022-12-02 16:50:56 +00:00
|
|
|
const val gdbot = "https://gdbot.xyz"
|
2023-01-11 08:08:53 +00:00
|
|
|
const val consumetAnilistAPI = "https://api.consumet.org/meta/anilist"
|
2022-11-18 11:00:36 +00:00
|
|
|
|
2023-02-08 09:17:32 +00:00
|
|
|
private val apiKey = base64DecodeAPI("ZTM=NTg=MjM=MjM=ODc=MzI=OGQ=MmE=Nzk=Nzk=ZjI=NTA=NDY=NDA=MzA=YjA=") // PLEASE DON'T STEAL
|
2023-01-29 03:29:15 +00:00
|
|
|
|
2023-03-10 22:22:24 +00:00
|
|
|
/** ALL SOURCES */
|
2022-10-17 04:24:09 +00:00
|
|
|
const val twoEmbedAPI = "https://www.2embed.to"
|
2022-10-21 08:13:27 +00:00
|
|
|
const val vidSrcAPI = "https://v2.vidsrc.me"
|
2022-10-18 00:20:30 +00:00
|
|
|
const val dbgoAPI = "https://dbgo.fun"
|
|
|
|
const val movie123API = "https://api.123movie.cc"
|
2022-10-18 16:16:43 +00:00
|
|
|
const val movieHabAPI = "https://moviehab.com"
|
2022-10-27 08:46:19 +00:00
|
|
|
const val databaseGdriveAPI = "https://databasegdriveplayer.co"
|
|
|
|
const val hdMovieBoxAPI = "https://hdmoviebox.net"
|
|
|
|
const val series9API = "https://series9.la"
|
2022-12-20 15:24:47 +00:00
|
|
|
const val idlixAPI = "https://idlixian.com"
|
2022-10-29 19:32:17 +00:00
|
|
|
const val noverseAPI = "https://www.nollyverse.com"
|
2023-02-11 10:50:38 +00:00
|
|
|
const val olgplyAPI = "https://olgply.xyz" // dead
|
2023-03-10 22:22:24 +00:00
|
|
|
const val uniqueStreamAPI = "https://uniquestream.net"
|
2022-11-02 06:56:24 +00:00
|
|
|
const val filmxyAPI = "https://www.filmxy.vip"
|
2022-11-07 10:16:02 +00:00
|
|
|
const val kimcartoonAPI = "https://kimcartoon.li"
|
2022-12-09 08:44:01 +00:00
|
|
|
const val xMovieAPI = "https://xemovies.to"
|
2023-03-07 14:05:52 +00:00
|
|
|
const val haikeiFlixhqAPI = "https://api.haikei.xyz/movies/flixhq" // disabled due to rate limit
|
2022-11-18 11:00:36 +00:00
|
|
|
const val consumetZoroAPI = "https://api.consumet.org/anime/zoro"
|
2023-03-06 01:27:16 +00:00
|
|
|
const val consumetCrunchyrollAPI = "https://cronchy.consumet.stream"
|
|
|
|
const val kickassanimeAPI = "https://www2.kickassanime.ro" // disabled due to consumet
|
2022-11-13 20:02:28 +00:00
|
|
|
const val kissKhAPI = "https://kisskh.me"
|
2022-11-19 04:37:28 +00:00
|
|
|
const val lingAPI = "https://ling-online.net"
|
2023-02-08 04:50:33 +00:00
|
|
|
const val uhdmoviesAPI = "https://uhdmovies.world"
|
2022-11-22 13:50:37 +00:00
|
|
|
const val fwatayakoAPI = "https://5100.svetacdn.in"
|
2022-12-02 16:50:56 +00:00
|
|
|
const val gMoviesAPI = "https://gdrivemovies.xyz"
|
2023-01-19 02:51:04 +00:00
|
|
|
const val fdMoviesAPI = "https://freedrivemovie.lol"
|
2022-12-09 08:44:01 +00:00
|
|
|
const val m4uhdAPI = "https://m4uhd.tv"
|
2022-12-10 12:25:28 +00:00
|
|
|
const val tvMoviesAPI = "https://www.tvseriesnmovies.com"
|
2023-02-07 07:19:35 +00:00
|
|
|
const val moviezAddAPI = "https://45.143.223.244"
|
2023-01-04 17:45:21 +00:00
|
|
|
const val bollyMazaAPI = "https://b.bloginguru.info"
|
2022-12-29 02:48:08 +00:00
|
|
|
const val moviesbayAPI = "https://moviesbay.live"
|
2023-02-18 14:56:08 +00:00
|
|
|
const val rStreamAPI = "https://remotestre.am"
|
2023-01-11 01:28:46 +00:00
|
|
|
const val flixonAPI = "https://flixon.ru"
|
|
|
|
const val animeKaizokuAPI = "https://animekaizoku.com"
|
2023-01-17 03:55:16 +00:00
|
|
|
const val movie123NetAPI = "https://ww7.0123movie.net"
|
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-02-26 12:40:53 +00:00
|
|
|
val gomoviesAPI = base64DecodeAPI("bQ==Y28=ZS4=aW4=bmw=LW8=ZXM=dmk=bW8=Z28=Ly8=czo=dHA=aHQ=")
|
2023-03-10 22:22:24 +00:00
|
|
|
const val ask4MoviesAPI = "https://ask4movie.mx"
|
|
|
|
const val biliBiliAPI = "https://api-vn.kaguya.app/server"
|
2023-03-13 10:20:00 +00:00
|
|
|
const val watchOnlineAPI = "https://watchonline.ag"
|
2023-03-10 22:22:24 +00:00
|
|
|
// INDEX SITE
|
2023-02-10 08:36:06 +00:00
|
|
|
const val baymoviesAPI = "https://opengatewayindex.pages.dev" // dead
|
2023-02-07 04:23:21 +00:00
|
|
|
const val chillmovies0API = "https://chill.aicirou.workers.dev/0:" // dead
|
|
|
|
const val chillmovies1API = "https://chill.aicirou.workers.dev/1:" // dead
|
2023-02-07 16:45:21 +00:00
|
|
|
const val gamMoviesAPI = "https://drive.gamick.workers.dev/0:" // dead
|
2023-02-18 14:56:08 +00:00
|
|
|
const val jsMoviesAPI = "https://jsupload.jnsbot.workers.dev/0:" // dead
|
|
|
|
const val xtremeMoviesAPI = "https://kartik19.xtrememirror0.workers.dev/0:" // dead
|
2023-02-06 04:55:42 +00:00
|
|
|
const val blackMoviesAPI = "https://dl.blacklistedbois.workers.dev/0:"
|
2023-02-07 03:07:14 +00:00
|
|
|
const val rinzryMoviesAPI = "https://rinzry.stream/0:"
|
|
|
|
const val codexMoviesAPI = "https://packs.codexcloudx.tech/0:"
|
2023-02-07 16:45:21 +00:00
|
|
|
const val edithxMoviesAPI = "https://index.edithx.ga/0:"
|
2023-02-10 08:36:06 +00:00
|
|
|
const val papaonMovies1API = "https://m.papaonwork.workers.dev/0:"
|
|
|
|
const val papaonMovies2API = "https://m.papaonwork.workers.dev/1:"
|
2023-02-10 17:52:02 +00:00
|
|
|
const val dahmerMoviesAPI = "https://edytjedhgmdhm.abfhaqrhbnf.workers.dev"
|
2023-02-19 16:31:07 +00:00
|
|
|
const val tgarMovieAPI = "https://tgarchive.eu.org"
|
2023-02-19 19:57:29 +00:00
|
|
|
const val jmdkhMovieAPI = "https://tg.jmdkh.eu.org/0:"
|
2023-02-21 09:02:45 +00:00
|
|
|
const val rubyMovieAPI = "https://upload.rubyshare111.workers.dev/0:"
|
|
|
|
const val shinobiMovieAPI = "https://index.shinobicloud.cf/0:"
|
|
|
|
const val vitoenMovieAPI = "https://openmatte.vitoencodes.workers.dev/0:"
|
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-11-04 15:54:25 +00:00
|
|
|
fun base64DecodeAPI(api: String): String {
|
2022-10-17 06:32:34 +00:00
|
|
|
return api.chunked(4).map { base64Decode(it) }.reversed().joinToString("")
|
|
|
|
}
|
2022-11-04 15:54:25 +00:00
|
|
|
|
2022-10-15 15:26:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
override val mainPage = mainPageOf(
|
2023-01-12 01:54:02 +00:00
|
|
|
"$tmdbAPI/trending/all/day?api_key=$apiKey®ion=US" to "Trending",
|
|
|
|
"$tmdbAPI/movie/popular?api_key=$apiKey®ion=US" to "Popular Movies",
|
2023-02-19 15:33:51 +00:00
|
|
|
"$tmdbAPI/tv/popular?api_key=$apiKey®ion=US&with_original_language=en" to "Popular TV Shows",
|
|
|
|
"$tmdbAPI/tv/airing_today?api_key=$apiKey®ion=US&with_original_language=en" to "Airing Today TV Shows",
|
2023-02-01 17:27:45 +00:00
|
|
|
// "$tmdbAPI/tv/on_the_air?api_key=$apiKey®ion=US" to "On The Air TV Shows",
|
2022-12-31 18:58:34 +00:00
|
|
|
"$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",
|
2023-02-24 21:32:34 +00:00
|
|
|
"$tmdbAPI/discover/tv?api_key=$apiKey&with_networks=4330" to "Paramount+",
|
2023-01-12 01:54:02 +00:00
|
|
|
"$tmdbAPI/movie/top_rated?api_key=$apiKey®ion=US" to "Top Rated Movies",
|
|
|
|
"$tmdbAPI/tv/top_rated?api_key=$apiKey®ion=US" to "Top Rated TV Shows",
|
|
|
|
"$tmdbAPI/movie/upcoming?api_key=$apiKey®ion=US" to "Upcoming Movies",
|
2022-12-31 18:58:34 +00:00
|
|
|
"$tmdbAPI/discover/tv?api_key=$apiKey&with_original_language=ko" to "Korean Shows",
|
|
|
|
"$tmdbAPI/tv/airing_today?api_key=$apiKey&with_keywords=210024|222243&sort_by=primary_release_date.desc" to "Airing Today Anime",
|
|
|
|
"$tmdbAPI/tv/on_the_air?api_key=$apiKey&with_keywords=210024|222243&sort_by=primary_release_date.desc" to "Ongoing 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
|
|
|
|
}
|
|
|
|
|
2022-10-15 15:26:51 +00:00
|
|
|
override suspend fun getMainPage(
|
|
|
|
page: Int,
|
|
|
|
request: MainPageRequest
|
|
|
|
): HomePageResponse {
|
2023-01-04 17:45:21 +00:00
|
|
|
val adultQuery =
|
2023-02-19 16:31:07 +00:00
|
|
|
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"
|
2023-01-01 14:03:35 +00:00
|
|
|
val home = app.get("${request.data}$adultQuery&page=$page")
|
2022-10-15 15:26:51 +00:00
|
|
|
.parsedSafe<Results>()?.results
|
|
|
|
?.mapNotNull { media ->
|
|
|
|
media.toSearchResponse(type)
|
|
|
|
} ?: throw ErrorLoadingException("Invalid Json reponse")
|
|
|
|
return newHomePageResponse(request.name, home)
|
|
|
|
}
|
|
|
|
|
|
|
|
private fun Media.toSearchResponse(type: String? = null): SearchResponse? {
|
|
|
|
return newMovieSearchResponse(
|
|
|
|
title ?: name ?: originalTitle ?: return null,
|
|
|
|
Data(id = id, type = mediaType ?: type).toJson(),
|
|
|
|
TvType.Movie,
|
|
|
|
) {
|
|
|
|
this.posterUrl = getImageUrl(posterPath)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-01 17:27:45 +00:00
|
|
|
override suspend fun quickSearch(query: String): List<SearchResponse>? = search(query)
|
|
|
|
|
2022-12-21 21:49:12 +00:00
|
|
|
override suspend fun search(query: String): List<SearchResponse>? {
|
|
|
|
return app.get(
|
2023-02-01 17:27:45 +00:00
|
|
|
"$tmdbAPI/search/multi?api_key=$apiKey&language=en-US&query=$query&page=1&include_adult=${settingsForProvider.enableAdult}"
|
2022-10-15 15:26:51 +00:00
|
|
|
).parsedSafe<Results>()?.results?.mapNotNull { media ->
|
|
|
|
media.toSearchResponse()
|
2022-11-01 04:37:30 +00:00
|
|
|
}
|
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)
|
2022-12-07 15:06:48 +00:00
|
|
|
val resUrl = if (type == TvType.Movie) {
|
2023-01-01 14:03:35 +00:00
|
|
|
"$tmdbAPI/movie/${data.id}?api_key=$apiKey&append_to_response=keywords,credits,external_ids,videos,recommendations"
|
2022-11-22 07:43:11 +00:00
|
|
|
} else {
|
2023-01-01 14:03:35 +00:00
|
|
|
"$tmdbAPI/tv/${data.id}?api_key=$apiKey&append_to_response=keywords,credits,external_ids,videos,recommendations"
|
2022-11-22 07:43:11 +00:00
|
|
|
}
|
2022-12-07 15:06:48 +00:00
|
|
|
val res = app.get(resUrl).parsedSafe<MediaDetail>()
|
|
|
|
?: 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
|
|
|
|
val year = (res.releaseDate ?: res.firstAirDate)?.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-02-01 17:27:45 +00:00
|
|
|
val isAnime =
|
|
|
|
genres?.contains("Animation") == true && (res.original_language == "zh" || res.original_language == "ja")
|
2023-01-01 14:03:35 +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 ->
|
2022-10-15 15:26:51 +00:00
|
|
|
ActorData(
|
|
|
|
Actor(
|
|
|
|
cast.name ?: cast.originalName ?: return@mapNotNull null,
|
|
|
|
getImageUrl(cast.profilePath)
|
|
|
|
),
|
2022-11-22 07:43:11 +00:00
|
|
|
roleString = cast.character
|
2022-10-15 15:26:51 +00:00
|
|
|
)
|
|
|
|
} ?: return null
|
2022-12-07 15:06:48 +00:00
|
|
|
val recommendations =
|
|
|
|
res.recommendations?.results?.mapNotNull { media -> media.toSearchResponse() }
|
2022-10-15 15:26:51 +00:00
|
|
|
|
2022-11-22 07:43:11 +00:00
|
|
|
val trailer = res.videos?.results?.map { "https://www.youtube.com/watch?v=${it.key}" }
|
|
|
|
?.randomOrNull()
|
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 ->
|
2022-10-15 15:26:51 +00:00
|
|
|
app.get("$tmdbAPI/${data.type}/${data.id}/season/${season.seasonNumber}?api_key=$apiKey")
|
|
|
|
.parsedSafe<MediaDetailEpisodes>()?.episodes?.map { eps ->
|
2022-12-23 12:02:01 +00:00
|
|
|
Episode(
|
2022-10-15 15:26:51 +00:00
|
|
|
LinkData(
|
|
|
|
data.id,
|
2022-11-22 07:43:11 +00:00
|
|
|
res.external_ids?.imdb_id,
|
2022-10-15 15:26:51 +00:00
|
|
|
data.type,
|
|
|
|
eps.seasonNumber,
|
2022-10-27 08:46:19 +00:00
|
|
|
eps.episodeNumber,
|
|
|
|
title = title,
|
2022-11-04 15:54:25 +00:00
|
|
|
year = season.airDate?.split("-")?.first()?.toIntOrNull(),
|
|
|
|
orgTitle = orgTitle,
|
2022-12-07 15:06:48 +00:00
|
|
|
isAnime = isAnime,
|
2022-11-21 10:27:07 +00:00
|
|
|
airedYear = year,
|
2022-12-14 05:05:18 +00:00
|
|
|
lastSeason = lastSeason,
|
|
|
|
epsTitle = eps.name,
|
2022-10-15 15:26:51 +00:00
|
|
|
).toJson(),
|
|
|
|
name = eps.name,
|
|
|
|
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-12-23 12:02:01 +00:00
|
|
|
}
|
2022-10-15 15:26:51 +00:00
|
|
|
}
|
2022-12-23 12:02:01 +00:00
|
|
|
}?.flatten() ?: listOf()
|
2022-10-15 15:26:51 +00:00
|
|
|
newTvSeriesLoadResponse(
|
2022-10-27 08:46:19 +00:00
|
|
|
title,
|
2022-10-15 15:26:51 +00:00
|
|
|
url,
|
2022-12-29 02:48:08 +00:00
|
|
|
if (isAnime) TvType.Anime else TvType.TvSeries,
|
2022-10-15 15:26:51 +00:00
|
|
|
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
|
2023-01-01 14:03:35 +00:00
|
|
|
this.tags = if (isAnime) keywords else 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
|
2022-10-27 09:02:40 +00:00
|
|
|
addTrailer(trailer)
|
2022-10-15 15:26:51 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
newMovieLoadResponse(
|
2022-10-27 08:46:19 +00:00
|
|
|
title,
|
2022-10-15 15:26:51 +00:00
|
|
|
url,
|
|
|
|
TvType.Movie,
|
|
|
|
LinkData(
|
|
|
|
data.id,
|
2022-11-22 07:43:11 +00:00
|
|
|
res.external_ids?.imdb_id,
|
2022-10-15 15:26:51 +00:00
|
|
|
data.type,
|
2022-10-27 08:46:19 +00:00
|
|
|
title = title,
|
2022-10-30 05:29:18 +00:00
|
|
|
year = year,
|
2022-11-04 15:54:25 +00:00
|
|
|
orgTitle = orgTitle,
|
2022-12-07 15:06:48 +00:00
|
|
|
isAnime = isAnime,
|
2022-10-15 15:26:51 +00:00
|
|
|
).toJson(),
|
|
|
|
) {
|
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
|
2023-02-04 07:44:26 +00:00
|
|
|
this.duration = res.runtime
|
2023-01-01 14:03:35 +00:00
|
|
|
this.tags = if (isAnime) keywords else 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
|
2022-10-27 09:02:40 +00:00
|
|
|
addTrailer(trailer)
|
2022-10-15 15:26:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-25 23:28:25 +00:00
|
|
|
override suspend fun extractorVerifierJob(extractorData: String?) {
|
|
|
|
if (extractorData == null) return
|
|
|
|
VidSrcExtractor.validatePass(extractorData)
|
|
|
|
}
|
|
|
|
|
2022-10-15 15:26:51 +00:00
|
|
|
override suspend fun loadLinks(
|
|
|
|
data: String,
|
|
|
|
isCasting: Boolean,
|
|
|
|
subtitleCallback: (SubtitleFile) -> Unit,
|
|
|
|
callback: (ExtractorLink) -> Unit
|
|
|
|
): Boolean {
|
|
|
|
|
|
|
|
val res = parseJson<LinkData>(data)
|
|
|
|
|
2022-10-17 03:47:46 +00:00
|
|
|
argamap(
|
2022-11-07 11:03:22 +00:00
|
|
|
{
|
2023-01-08 20:23:44 +00:00
|
|
|
invokeSoraStream(
|
2022-11-07 11:03:22 +00:00
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
)
|
|
|
|
},
|
2022-10-17 05:02:24 +00:00
|
|
|
{
|
|
|
|
invokeTwoEmbed(res.id, res.season, res.episode, subtitleCallback, callback)
|
|
|
|
},
|
2022-10-17 04:24:09 +00:00
|
|
|
{
|
2022-10-17 05:01:44 +00:00
|
|
|
invokeVidSrc(res.id, res.season, res.episode, subtitleCallback, callback)
|
|
|
|
},
|
2022-11-21 10:27:07 +00:00
|
|
|
// {
|
|
|
|
// invokeOlgply(res.id, res.season, res.episode, callback)
|
|
|
|
// },
|
2022-10-17 08:03:20 +00:00
|
|
|
{
|
|
|
|
invokeDbgo(res.imdbId, res.season, res.episode, subtitleCallback, callback)
|
2022-10-18 00:20:30 +00:00
|
|
|
},
|
|
|
|
{
|
2022-10-19 21:46:22 +00:00
|
|
|
invoke123Movie(
|
|
|
|
res.id,
|
|
|
|
res.imdbId,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
2022-10-18 16:16:43 +00:00
|
|
|
},
|
|
|
|
{
|
2022-10-28 03:57:14 +00:00
|
|
|
invokeMovieHab(res.imdbId, res.season, res.episode, subtitleCallback, callback)
|
2022-10-19 21:46:22 +00:00
|
|
|
},
|
2022-10-27 09:03:24 +00:00
|
|
|
// {
|
|
|
|
// invokeDatabaseGdrive(
|
|
|
|
// res.imdbId,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// subtitleCallback,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
2022-10-19 21:46:22 +00:00
|
|
|
{
|
2023-02-01 17:27:45 +00:00
|
|
|
if (res.isAnime) invokeAnimes(
|
|
|
|
res.id,
|
|
|
|
res.title,
|
|
|
|
res.epsTitle,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
2022-10-27 08:46:19 +00:00
|
|
|
},
|
|
|
|
{
|
2023-03-06 01:27:16 +00:00
|
|
|
if (res.season != null && res.isAnime) invokeCrunchyroll(
|
2022-12-14 05:05:18 +00:00
|
|
|
res.title,
|
|
|
|
res.epsTitle,
|
2022-12-22 07:01:10 +00:00
|
|
|
res.season,
|
|
|
|
res.episode,
|
2022-12-14 05:05:18 +00:00
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 17:45:21 +00:00
|
|
|
if (!res.isAnime) invokeHDMovieBox(
|
|
|
|
res.title,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
2022-10-27 08:46:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
invokeSeries9(res.title, res.season, res.episode, subtitleCallback, callback)
|
2022-10-28 03:57:14 +00:00
|
|
|
},
|
|
|
|
{
|
2022-11-04 15:54:25 +00:00
|
|
|
invokeIdlix(
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
2022-10-29 19:32:17 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
invokeNoverse(res.title, res.season, res.episode, callback)
|
2022-11-01 04:37:30 +00:00
|
|
|
},
|
|
|
|
{
|
2022-11-04 15:54:25 +00:00
|
|
|
invokeUniqueStream(
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
2022-11-02 06:56:24 +00:00
|
|
|
},
|
2022-11-10 04:28:02 +00:00
|
|
|
{
|
2023-02-18 14:56:08 +00:00
|
|
|
if (!res.isAnime) invokeFilmxy(res.imdbId, res.season, res.episode, subtitleCallback, callback)
|
2022-11-10 04:28:02 +00:00
|
|
|
},
|
2022-11-07 10:16:02 +00:00
|
|
|
{
|
|
|
|
invokeKimcartoon(res.title, res.season, res.episode, subtitleCallback, callback)
|
|
|
|
},
|
2022-11-12 12:08:52 +00:00
|
|
|
{
|
2022-11-19 04:37:28 +00:00
|
|
|
invokeXmovies(
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
2022-11-12 12:08:52 +00:00
|
|
|
},
|
2023-03-05 15:58:53 +00:00
|
|
|
// {
|
|
|
|
// invokeFlixhq(
|
|
|
|
// res.title,
|
|
|
|
// res.year,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// res.lastSeason,
|
|
|
|
// subtitleCallback,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
2022-11-13 20:02:28 +00:00
|
|
|
{
|
2022-12-14 09:35:04 +00:00
|
|
|
invokeKisskh(res.title, res.season, res.episode, subtitleCallback, callback)
|
2022-11-13 20:02:28 +00:00
|
|
|
},
|
2022-11-19 04:37:28 +00:00
|
|
|
{
|
|
|
|
invokeLing(
|
|
|
|
res.title,
|
|
|
|
res.airedYear ?: res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
2022-11-24 08:35:43 +00:00
|
|
|
{
|
2022-12-14 05:05:18 +00:00
|
|
|
if (!res.isAnime) invokeUhdmovies(
|
2022-11-24 08:35:43 +00:00
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.lastSeason,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
2022-11-22 13:50:37 +00:00
|
|
|
{
|
2023-01-12 01:54:02 +00:00
|
|
|
invokeFwatayako(res.imdbId, res.season, res.episode, callback)
|
2022-11-22 13:50:37 +00:00
|
|
|
},
|
2022-12-09 08:44:01 +00:00
|
|
|
{
|
2022-12-14 05:05:18 +00:00
|
|
|
if (!res.isAnime) invokeGMovies(
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
2022-12-09 08:44:01 +00:00
|
|
|
},
|
2022-12-11 03:09:55 +00:00
|
|
|
{
|
2022-12-14 05:05:18 +00:00
|
|
|
if (!res.isAnime) invokeFDMovies(
|
|
|
|
res.title,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
2022-12-11 03:09:55 +00:00
|
|
|
},
|
2022-12-09 08:44:01 +00:00
|
|
|
{
|
2022-12-14 05:05:18 +00:00
|
|
|
invokeM4uhd(
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback,
|
|
|
|
callback
|
|
|
|
)
|
2022-12-10 12:25:28 +00:00
|
|
|
},
|
|
|
|
{
|
2022-12-31 18:06:35 +00:00
|
|
|
invokeTvMovies(res.title, res.season, res.episode, callback)
|
2022-12-10 12:25:28 +00:00
|
|
|
},
|
2022-12-29 02:48:08 +00:00
|
|
|
{
|
|
|
|
if (res.season == null) invokeMoviesbay(
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
|
|
|
{
|
2022-12-30 22:16:30 +00:00
|
|
|
if (!res.isAnime) invokeMoviezAdd(
|
2023-01-04 17:45:21 +00:00
|
|
|
moviezAddAPI,
|
|
|
|
"MoviezAdd",
|
2022-12-29 02:48:08 +00:00
|
|
|
res.title,
|
|
|
|
res.year,
|
2022-12-30 22:16:30 +00:00
|
|
|
res.season,
|
|
|
|
res.episode,
|
2022-12-29 02:48:08 +00:00
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
2023-01-04 17:45:21 +00:00
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeBollyMaza(
|
|
|
|
bollyMazaAPI,
|
|
|
|
"BollyMaza",
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
2023-01-04 18:04:11 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
invokeRStream(res.id, res.season, res.episode, callback)
|
2023-01-11 01:28:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
invokeFlixon(res.id, res.imdbId, res.season, res.episode, callback)
|
|
|
|
},
|
2023-01-17 03:55:16 +00:00
|
|
|
{
|
2023-02-06 04:55:42 +00:00
|
|
|
invokeMovie123Net(res.title, res.season, res.episode, subtitleCallback, callback)
|
2023-01-17 03:55:16 +00:00
|
|
|
},
|
2023-01-21 06:25:04 +00:00
|
|
|
{
|
2023-02-06 04:55:42 +00:00
|
|
|
invokeSmashyStream(res.imdbId, res.season, res.episode, callback)
|
2023-01-29 03:29:15 +00:00
|
|
|
},
|
2023-02-07 03:43:31 +00:00
|
|
|
// {
|
|
|
|
// if (!res.isAnime) invokeBaymovies(
|
|
|
|
// res.title,
|
|
|
|
// res.year,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
2023-02-07 04:24:39 +00:00
|
|
|
// {
|
|
|
|
// invokeChillmovies0(
|
|
|
|
// chillmovies0API,
|
|
|
|
// "Chillmovies0",
|
|
|
|
// res.title,
|
|
|
|
// res.year,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// invokeChillmovies1(
|
|
|
|
// chillmovies1API,
|
|
|
|
// "Chillmovies1",
|
|
|
|
// res.title,
|
|
|
|
// res.year,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
2023-02-07 16:45:21 +00:00
|
|
|
// {
|
|
|
|
// if (!res.isAnime) invokeGammovies(
|
|
|
|
// gamMoviesAPI,
|
2023-02-09 03:47:14 +00:00
|
|
|
// "GamMovies",
|
2023-02-07 16:45:21 +00:00
|
|
|
// res.title,
|
|
|
|
// res.year,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
2023-02-02 06:51:20 +00:00
|
|
|
{
|
|
|
|
invokeWatchsomuch(
|
|
|
|
res.imdbId,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
subtitleCallback
|
|
|
|
)
|
|
|
|
},
|
2023-02-06 04:55:42 +00:00
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeBlackmovies(
|
|
|
|
blackMoviesAPI,
|
2023-02-09 03:47:14 +00:00
|
|
|
"BlackMovies",
|
2023-02-06 04:55:42 +00:00
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
2023-02-18 14:56:08 +00:00
|
|
|
// {
|
|
|
|
// if (!res.isAnime) invokeJsmovies(
|
|
|
|
// jsMoviesAPI,
|
|
|
|
// "JSMovies",
|
|
|
|
// res.title,
|
|
|
|
// res.year,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
2023-02-07 03:07:14 +00:00
|
|
|
{
|
|
|
|
invokeRinzrymovies(
|
|
|
|
rinzryMoviesAPI,
|
2023-02-09 03:47:14 +00:00
|
|
|
"RinzryMovies",
|
2023-02-07 03:07:14 +00:00
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback,
|
|
|
|
)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeCodexmovies(
|
|
|
|
codexMoviesAPI,
|
|
|
|
"CodexMovies",
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback,
|
|
|
|
"Basic Y29kZXg6Y29kZXhjbG91ZA=="
|
|
|
|
)
|
2023-02-07 16:45:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeEdithxmovies(
|
|
|
|
edithxMoviesAPI,
|
2023-02-09 03:47:14 +00:00
|
|
|
"EdithxMovies",
|
2023-02-07 16:45:21 +00:00
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback,
|
|
|
|
"Basic ZWRpdGg6amFydmlz"
|
|
|
|
)
|
2023-02-09 03:47:14 +00:00
|
|
|
},
|
2023-02-18 14:56:08 +00:00
|
|
|
// {
|
|
|
|
// if (!res.isAnime) invokeXtrememovies(
|
|
|
|
// xtremeMoviesAPI,
|
|
|
|
// "XtremeMovies",
|
|
|
|
// res.title,
|
|
|
|
// res.year,
|
|
|
|
// res.season,
|
|
|
|
// res.episode,
|
|
|
|
// callback
|
|
|
|
// )
|
|
|
|
// },
|
2023-02-10 08:36:06 +00:00
|
|
|
{
|
|
|
|
if (!res.isAnime) invokePapaonMovies1(
|
|
|
|
papaonMovies1API,
|
|
|
|
"PapaonMovies[1]",
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
if (!res.isAnime) invokePapaonMovies2(
|
|
|
|
papaonMovies2API,
|
|
|
|
"PapaonMovies[2]",
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
2023-02-10 17:52:02 +00:00
|
|
|
{
|
|
|
|
invokeDahmerMovies(
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
2023-02-18 14:56:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
invokeGomovies(res.title, res.year, res.season, res.episode, callback)
|
|
|
|
},
|
2023-02-19 14:49:44 +00:00
|
|
|
{
|
2023-02-19 16:31:07 +00:00
|
|
|
if (!res.isAnime) invokeTgarMovies(res.title, res.year, res.season, res.episode, callback)
|
2023-02-19 14:49:44 +00:00
|
|
|
},
|
2023-03-01 20:18:32 +00:00
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeGdbotMovies(res.title, res.year, res.season, res.episode, callback)
|
|
|
|
},
|
2023-02-19 19:57:29 +00:00
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeJmdkhMovies(
|
|
|
|
jmdkhMovieAPI,
|
|
|
|
"JmdkhMovies",
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
2023-02-21 09:02:45 +00:00
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeShinobiMovies(
|
|
|
|
shinobiMovieAPI,
|
|
|
|
"ShinobiMovies",
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeRubyMovies(
|
|
|
|
rubyMovieAPI,
|
|
|
|
"RubyMovies",
|
|
|
|
res.title,
|
|
|
|
res.year,
|
|
|
|
res.season,
|
|
|
|
res.episode,
|
|
|
|
callback
|
|
|
|
)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
if (!res.isAnime) invokeVitoenMovies(
|
|
|
|
vitoenMovieAPI,
|
|
|
|
"VitoenMovies",
|
|
|
|
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(res.title, res.year, res.season, res.episode, subtitleCallback, callback)
|
2023-03-10 22:22:24 +00:00
|
|
|
},
|
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.season,
|
|
|
|
res.episode,
|
2023-03-13 19:13:38 +00:00
|
|
|
subtitleCallback,
|
2023-03-13 10:20:00 +00:00
|
|
|
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(
|
2022-10-15 15:26:51 +00:00
|
|
|
val id: Int? = null,
|
|
|
|
val imdbId: String? = null,
|
|
|
|
val type: String? = null,
|
|
|
|
val season: Int? = null,
|
|
|
|
val episode: Int? = null,
|
2022-10-19 21:46:22 +00:00
|
|
|
val aniId: String? = null,
|
|
|
|
val animeId: String? = null,
|
2022-10-27 08:46:19 +00:00
|
|
|
val title: String? = null,
|
2022-10-30 05:29:18 +00:00
|
|
|
val year: Int? = null,
|
2022-11-04 15:54:25 +00:00
|
|
|
val orgTitle: String? = null,
|
2022-12-07 15:06:48 +00:00
|
|
|
val isAnime: Boolean = false,
|
2022-11-19 04:37:28 +00:00
|
|
|
val airedYear: Int? = null,
|
2022-11-21 10:27:07 +00:00
|
|
|
val lastSeason: Int? = null,
|
2022-12-14 05:05:18 +00:00
|
|
|
val epsTitle: String? = null,
|
2022-10-15 15:26:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
data class Data(
|
|
|
|
val id: Int? = null,
|
|
|
|
val type: String? = null,
|
2022-10-19 21:46:22 +00:00
|
|
|
val aniId: String? = null,
|
|
|
|
val malId: Int? = null,
|
2022-10-15 15:26:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
data class Results(
|
|
|
|
@JsonProperty("results") val results: ArrayList<Media>? = arrayListOf(),
|
|
|
|
)
|
|
|
|
|
|
|
|
data class Media(
|
|
|
|
@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,
|
|
|
|
)
|
|
|
|
|
|
|
|
data class Genres(
|
|
|
|
@JsonProperty("id") val id: Int? = null,
|
|
|
|
@JsonProperty("name") val name: String? = null,
|
|
|
|
)
|
|
|
|
|
2023-01-01 14:03:35 +00:00
|
|
|
data class Keywords(
|
|
|
|
@JsonProperty("id") val id: Int? = null,
|
|
|
|
@JsonProperty("name") val name: String? = null,
|
|
|
|
)
|
|
|
|
|
|
|
|
data class KeywordResults(
|
|
|
|
@JsonProperty("results") val results: ArrayList<Keywords>? = arrayListOf(),
|
|
|
|
@JsonProperty("keywords") val keywords: ArrayList<Keywords>? = arrayListOf(),
|
|
|
|
)
|
|
|
|
|
2022-10-15 15:26:51 +00:00
|
|
|
data class Seasons(
|
|
|
|
@JsonProperty("id") val id: Int? = null,
|
|
|
|
@JsonProperty("name") val name: String? = null,
|
|
|
|
@JsonProperty("season_number") val seasonNumber: Int? = null,
|
2022-11-04 15:54:25 +00:00
|
|
|
@JsonProperty("air_date") val airDate: String? = null,
|
2022-10-15 15:26:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
data class Cast(
|
|
|
|
@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,
|
|
|
|
)
|
|
|
|
|
|
|
|
data class Episodes(
|
|
|
|
@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,
|
|
|
|
)
|
|
|
|
|
|
|
|
data class MediaDetailEpisodes(
|
|
|
|
@JsonProperty("episodes") val episodes: ArrayList<Episodes>? = arrayListOf(),
|
|
|
|
)
|
|
|
|
|
2022-10-27 09:02:40 +00:00
|
|
|
data class Trailers(
|
|
|
|
@JsonProperty("key") val key: String? = null,
|
|
|
|
)
|
|
|
|
|
|
|
|
data class ResultsTrailer(
|
|
|
|
@JsonProperty("results") val results: ArrayList<Trailers>? = arrayListOf(),
|
|
|
|
)
|
|
|
|
|
2022-11-22 07:43:11 +00:00
|
|
|
data class ExternalIds(
|
|
|
|
@JsonProperty("imdb_id") val imdb_id: String? = null,
|
|
|
|
@JsonProperty("tvdb_id") val tvdb_id: String? = null,
|
|
|
|
)
|
|
|
|
|
|
|
|
data class Credits(
|
|
|
|
@JsonProperty("cast") val cast: ArrayList<Cast>? = arrayListOf(),
|
|
|
|
)
|
|
|
|
|
|
|
|
data class ResultsRecommendations(
|
|
|
|
@JsonProperty("results") val results: ArrayList<Media>? = arrayListOf(),
|
|
|
|
)
|
|
|
|
|
2023-02-21 20:40:08 +00:00
|
|
|
data class LastEpisodeToAir(
|
|
|
|
@JsonProperty("episode_number") val episode_number: Int? = null,
|
|
|
|
@JsonProperty("season_number") val season_number: Int? = null,
|
|
|
|
)
|
|
|
|
|
2022-10-15 15:26:51 +00:00
|
|
|
data class MediaDetail(
|
|
|
|
@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,
|
2022-11-03 06:36:36 +00:00
|
|
|
@JsonProperty("backdrop_path") val backdropPath: String? = null,
|
2022-10-15 15:26:51 +00:00
|
|
|
@JsonProperty("release_date") val releaseDate: String? = null,
|
|
|
|
@JsonProperty("first_air_date") val firstAirDate: String? = null,
|
|
|
|
@JsonProperty("overview") val overview: String? = null,
|
2023-02-04 07:44:26 +00:00
|
|
|
@JsonProperty("runtime") val runtime: Int? = null,
|
2022-11-24 06:27:52 +00:00
|
|
|
@JsonProperty("vote_average") val vote_average: Any? = null,
|
2022-11-19 04:37:28 +00:00
|
|
|
@JsonProperty("original_language") val original_language: String? = null,
|
2022-10-15 15:26:51 +00:00
|
|
|
@JsonProperty("status") val status: String? = null,
|
|
|
|
@JsonProperty("genres") val genres: ArrayList<Genres>? = arrayListOf(),
|
2023-01-01 14:03:35 +00:00
|
|
|
@JsonProperty("keywords") val keywords: KeywordResults? = null,
|
2023-02-21 20:40:08 +00:00
|
|
|
@JsonProperty("last_episode_to_air") val last_episode_to_air: LastEpisodeToAir? = null,
|
2022-10-15 15:26:51 +00:00
|
|
|
@JsonProperty("seasons") val seasons: ArrayList<Seasons>? = arrayListOf(),
|
2022-10-27 09:02:40 +00:00
|
|
|
@JsonProperty("videos") val videos: ResultsTrailer? = null,
|
2022-11-22 07:43:11 +00:00
|
|
|
@JsonProperty("external_ids") val external_ids: ExternalIds? = null,
|
|
|
|
@JsonProperty("credits") val credits: Credits? = null,
|
|
|
|
@JsonProperty("recommendations") val recommendations: ResultsRecommendations? = null,
|
2022-10-15 15:26:51 +00:00
|
|
|
)
|
|
|
|
|
2022-10-15 16:52:16 +00:00
|
|
|
data class EmbedJson(
|
|
|
|
@JsonProperty("type") val type: String? = null,
|
|
|
|
@JsonProperty("link") val link: String? = null,
|
|
|
|
@JsonProperty("sources") val sources: List<String?> = arrayListOf(),
|
|
|
|
@JsonProperty("tracks") val tracks: List<String>? = null,
|
|
|
|
)
|
|
|
|
|
2022-10-21 08:02:38 +00:00
|
|
|
data class MovieHabData(
|
|
|
|
@JsonProperty("link") val link: String? = null,
|
|
|
|
@JsonProperty("token") val token: String? = null,
|
|
|
|
)
|
|
|
|
|
|
|
|
data class MovieHabRes(
|
|
|
|
@JsonProperty("data") val data: MovieHabData? = null,
|
|
|
|
)
|
|
|
|
|
2022-10-15 15:26:51 +00:00
|
|
|
}
|