mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: small fix in TgarMovies
This commit is contained in:
parent
75349171ec
commit
1557837df0
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 97
|
version = 98
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -2481,10 +2481,10 @@ object SoraExtractor : SoraStream() {
|
||||||
val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode)
|
val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode)
|
||||||
|
|
||||||
val files = app.get(
|
val files = app.get(
|
||||||
"https://api.telegram.d1.zindex.eu.org/search?name=${encode(query)}&page=1",
|
"https://api.tgarchive.superfastsearch.zindex.eu.org/search?name=${encode(query)}&page=1",
|
||||||
referer = tgarMovieAPI,
|
referer = tgarMovieAPI,
|
||||||
timeout = 600L
|
timeout = 600L
|
||||||
).parsedSafe<TgarData>()?.results?.filter { media ->
|
).parsedSafe<TgarData>()?.documents?.filter { media ->
|
||||||
(if (season == null) {
|
(if (season == null) {
|
||||||
media.name?.contains("$year") == true
|
media.name?.contains("$year") == true
|
||||||
} else {
|
} else {
|
||||||
|
@ -2961,13 +2961,13 @@ data class IndexSearch(
|
||||||
data class TgarMedia(
|
data class TgarMedia(
|
||||||
@JsonProperty("_id") val _id: Int? = null,
|
@JsonProperty("_id") val _id: Int? = null,
|
||||||
@JsonProperty("name") val name: String? = null,
|
@JsonProperty("name") val name: String? = null,
|
||||||
@JsonProperty("size") val size: String? = null,
|
@JsonProperty("size") val size: Int? = null,
|
||||||
@JsonProperty("file_unique_id") val file_unique_id: String? = null,
|
@JsonProperty("file_unique_id") val file_unique_id: String? = null,
|
||||||
@JsonProperty("mime_type") val mime_type: String? = null,
|
@JsonProperty("mime_type") val mime_type: String? = null,
|
||||||
)
|
)
|
||||||
|
|
||||||
data class TgarData(
|
data class TgarData(
|
||||||
@JsonProperty("results") val results: ArrayList<TgarMedia>? = arrayListOf(),
|
@JsonProperty("documents") val documents: ArrayList<TgarMedia>? = arrayListOf(),
|
||||||
)
|
)
|
||||||
|
|
||||||
data class Gdflix(
|
data class Gdflix(
|
||||||
|
|
Loading…
Reference in a new issue