Fix: thumbnails

This commit is contained in:
aayush262 2024-08-29 00:16:29 +05:30 committed by GitHub
parent 6a077fa48d
commit f0536b3cad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ import kotlinx.serialization.json.decodeFromJsonElement
object Anify { object Anify {
suspend fun fetchAndParseMetadata(id :Int): Map<String, Episode> { suspend fun fetchAndParseMetadata(id :Int): Map<String, Episode> {
val response = client.get("https://api.anify.tv/content-metadata/$id") val response = client.get("https://anify.eltik.cc/content-metadata/$id")
.parsed<JsonArray>().map { .parsed<JsonArray>().map {
Mapper.json.decodeFromJsonElement<AnifyElement>(it) Mapper.json.decodeFromJsonElement<AnifyElement>(it)
} }
@ -43,4 +43,4 @@ object Anify {
val updatedAt: Long? = null, val updatedAt: Long? = null,
val rating: Double? = null val rating: Double? = null
) )
} }