small fix again

This commit is contained in:
hexated 2023-02-19 23:31:07 +07:00
parent 5fe071e03e
commit f776843b56
3 changed files with 10 additions and 6 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 92
version = 93
cloudstream {

View file

@ -2360,7 +2360,11 @@ object SoraExtractor : SoraStream() {
val (dotSlug, spaceSlug, slashSlug) = getTitleSlug(title)
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) {
media.name?.contains("$year") == true
} else {
@ -2391,7 +2395,7 @@ object SoraExtractor : SoraStream() {
"TgarMovies $tags [$size]",
"TgarMovies $tags [$size]",
"https://api.southkoreacdn.workers.dev/telegram/${file._id}",
"https://tgarchive.eu.org/",
"$tgarMovieAPI/",
quality,
)
)

View file

@ -126,7 +126,7 @@ open class SoraStream : TmdbProvider() {
const val papaonMovies1API = "https://m.papaonwork.workers.dev/0:"
const val papaonMovies2API = "https://m.papaonwork.workers.dev/1:"
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 {
return when (t) {
@ -185,7 +185,7 @@ open class SoraStream : TmdbProvider() {
request: MainPageRequest
): HomePageResponse {
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 home = app.get("${request.data}$adultQuery&page=$page")
.parsedSafe<Results>()?.results
@ -718,7 +718,7 @@ open class SoraStream : TmdbProvider() {
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)
},
)