mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
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:
parent
03c2641c86
commit
4643275ab4
4 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue