2
1
Fork 1
mirror of https://github.com/yoyzo/arab synced 2024-08-15 03:15:00 +00:00

some fixes for some providers

egybest still broken
This commit is contained in:
Zaw 2022-11-23 20:14:16 +03:00
parent c7bd8bf973
commit c007fefc1a
7 changed files with 68 additions and 38 deletions

View file

@ -1,4 +1,4 @@
version = 1
version = 2
cloudstream {
description = ""

View file

@ -116,7 +116,7 @@ class Animeiat : MainAPI() {
)
override suspend fun load(url: String): LoadResponse {
val loadSession = Requests()
val request = loadSession.get(url).text
val request = loadSession.get(url.replace(pageUrl, mainUrl)).text
val json = parseJson<Load>(request)
val episodes = arrayListOf<Episode>()
(1..parseJson<Episodes>(loadSession.get("$url/episodes").text).meta.lastPage!!).map { pageNumber ->
@ -134,7 +134,7 @@ class Animeiat : MainAPI() {
}
}
return newAnimeLoadResponse(json.data?.animeName.toString(), "$pageUrl/watch/"+json.data?.slug, if(json.data?.type == "movie") TvType.AnimeMovie else if(json.data?.type == "tv") TvType.Anime else TvType.OVA) {
japName = json.data?.otherNames?.split("\n")?.get(1)
japName = json.data?.otherNames?.replace("\\n.*".toRegex(), "")
engName = json.data?.animeName
posterUrl = "https://api.animeiat.co/storage/" + json.data?.posterPath
this.year = json.data?.year?.name?.toIntOrNull()