Update Anilibria.kt

This commit is contained in:
Saksham Kushwaha 2023-12-30 15:06:44 +05:30 committed by GitHub
parent efc0f6eaef
commit 12dded5ce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ class Anilibria : MainAPI() {
} }
private suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker { private suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker {
val res = app.get("https://api.consumet.org/meta/anilist/$title") val res = app.get("https://consumet-instance.vercel.app/meta/anilist/$title")
.parsedSafe<AniSearch>()?.results?.find { media -> .parsedSafe<AniSearch>()?.results?.find { media ->
(media.title?.english.equals(title, true) || media.title?.romaji.equals( (media.title?.english.equals(title, true) || media.title?.romaji.equals(
title, title,