mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix again
This commit is contained in:
parent
5fe071e03e
commit
f776843b56
3 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 92
|
version = 93
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -2360,7 +2360,11 @@ object SoraExtractor : SoraStream() {
|
||||||
val (dotSlug, spaceSlug, slashSlug) = getTitleSlug(title)
|
val (dotSlug, spaceSlug, slashSlug) = getTitleSlug(title)
|
||||||
val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode)
|
val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode)
|
||||||
|
|
||||||
val files = app.get("$tgarMovieAPI/search?name=$query&page=1").parsedSafe<TgarData>()?.results?.filter { media ->
|
val files = app.get(
|
||||||
|
"https://api.telegram.d1.zindex.eu.org/search?name=$query&page=1",
|
||||||
|
referer = tgarMovieAPI,
|
||||||
|
timeout = 120L
|
||||||
|
).parsedSafe<TgarData>()?.results?.filter { media ->
|
||||||
(if (season == null) {
|
(if (season == null) {
|
||||||
media.name?.contains("$year") == true
|
media.name?.contains("$year") == true
|
||||||
} else {
|
} else {
|
||||||
|
@ -2391,7 +2395,7 @@ object SoraExtractor : SoraStream() {
|
||||||
"TgarMovies $tags [$size]",
|
"TgarMovies $tags [$size]",
|
||||||
"TgarMovies $tags [$size]",
|
"TgarMovies $tags [$size]",
|
||||||
"https://api.southkoreacdn.workers.dev/telegram/${file._id}",
|
"https://api.southkoreacdn.workers.dev/telegram/${file._id}",
|
||||||
"https://tgarchive.eu.org/",
|
"$tgarMovieAPI/",
|
||||||
quality,
|
quality,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -126,7 +126,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
const val papaonMovies1API = "https://m.papaonwork.workers.dev/0:"
|
const val papaonMovies1API = "https://m.papaonwork.workers.dev/0:"
|
||||||
const val papaonMovies2API = "https://m.papaonwork.workers.dev/1:"
|
const val papaonMovies2API = "https://m.papaonwork.workers.dev/1:"
|
||||||
const val dahmerMoviesAPI = "https://edytjedhgmdhm.abfhaqrhbnf.workers.dev"
|
const val dahmerMoviesAPI = "https://edytjedhgmdhm.abfhaqrhbnf.workers.dev"
|
||||||
const val tgarMovieAPI = "https://api.telegram.d1.zindex.eu.org"
|
const val tgarMovieAPI = "https://tgarchive.eu.org"
|
||||||
|
|
||||||
fun getType(t: String?): TvType {
|
fun getType(t: String?): TvType {
|
||||||
return when (t) {
|
return when (t) {
|
||||||
|
@ -185,7 +185,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
request: MainPageRequest
|
request: MainPageRequest
|
||||||
): HomePageResponse {
|
): HomePageResponse {
|
||||||
val adultQuery =
|
val adultQuery =
|
||||||
if (settingsForProvider.enableAdult) "" else "&without_keywords=190370|13059|226161|195669|190370"
|
if (settingsForProvider.enableAdult) "" else "&without_keywords=190370|13059|226161|195669"
|
||||||
val type = if (request.data.contains("/movie")) "movie" else "tv"
|
val type = if (request.data.contains("/movie")) "movie" else "tv"
|
||||||
val home = app.get("${request.data}$adultQuery&page=$page")
|
val home = app.get("${request.data}$adultQuery&page=$page")
|
||||||
.parsedSafe<Results>()?.results
|
.parsedSafe<Results>()?.results
|
||||||
|
@ -718,7 +718,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
invokeGomovies(res.title, res.year, res.season, res.episode, callback)
|
invokeGomovies(res.title, res.year, res.season, res.episode, callback)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
invokeTgarMovies(res.title, res.year, res.season, res.episode, callback)
|
if (!res.isAnime) invokeTgarMovies(res.title, res.year, res.season, res.episode, callback)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue