Updated Consumet Instance (#484)

* Update YugenAnime.kt

consumet has closed it's public api instance for months now and to use it consumet a person has to host his/her own instance so just updated the instance

* Update Anilibria.kt

* Update Kickassanime.kt

* Update Loklok.kt
This commit is contained in:
Saksham Kushwaha 2024-01-01 17:39:03 +05:30 committed by GitHub
parent 03c2641c86
commit 4643275ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -144,7 +144,7 @@ class Anilibria : MainAPI() {
}
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 ->
(media.title?.english.equals(title, true) || media.title?.romaji.equals(
title,

View file

@ -35,8 +35,8 @@ open class Kickassanime : MainAPI() {
companion object {
const val kaast = "https://kaast1.com"
private const val consumetAnilist = "https://api.consumet.org/meta/anilist"
private const val consumetMal = "https://api.consumet.org/meta/mal"
private const val consumetAnilist = "https://consumet-instance.vercel.app/meta/anilist"
private const val consumetMal = "https://consumet-instance.vercel.app/meta/mal"
fun getType(t: String): TvType {
return when {
t.contains("Ova", true) -> TvType.OVA

View file

@ -268,7 +268,7 @@ class Loklok : MainAPI() {
}
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 ->
(media.title?.english.equals(title, true) || media.title?.romaji.equals(
title,

View file

@ -31,8 +31,8 @@ class YugenAnime : MainAPI() {
)
companion object {
private const val consumetAnilist = "https://api.consumet.org/meta/anilist"
private const val consumetMal = "https://api.consumet.org/meta/mal"
private const val consumetAnilist = "https://consumet-instance.vercel.app/meta/anilist"
private const val consumetMal = "https://consumet-instance.vercel.app/meta/mal"
fun getType(t: String): TvType {
return if (t.contains("OVA", true) || t.contains("Special", true)) TvType.OVA