diff --git a/Nimegami/build.gradle.kts b/Nimegami/build.gradle.kts index e861ae1d..f4617aee 100644 --- a/Nimegami/build.gradle.kts +++ b/Nimegami/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 2 +version = 3 cloudstream { diff --git a/Nimegami/src/main/kotlin/com/hexated/Extractors.kt b/Nimegami/src/main/kotlin/com/hexated/Extractors.kt index aed3ac15..a7f36f2e 100644 --- a/Nimegami/src/main/kotlin/com/hexated/Extractors.kt +++ b/Nimegami/src/main/kotlin/com/hexated/Extractors.kt @@ -27,15 +27,6 @@ open class Mitedrive : ExtractorApi() { ) ).parsedSafe()?.data?.url - val headers = mapOf( - "Accept" to "*/*", - "Connection" to "keep-alive", - "Sec-Fetch-Dest" to "empty", - "Sec-Fetch-Mode" to "cors", - "Sec-Fetch-Site" to "cross-site", - "Origin" to mainUrl, - ) - callback.invoke( ExtractorLink( this.name, @@ -43,7 +34,11 @@ open class Mitedrive : ExtractorApi() { video ?: return, "$mainUrl/", Qualities.Unknown.value, - headers = headers + headers = mapOf( + "Accept" to "video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5", + "Sec-Fetch-Dest" to "video", + "Sec-Fetch-Mode" to "no-cors", + ) ) ) diff --git a/Nimegami/src/main/kotlin/com/hexated/Nimegami.kt b/Nimegami/src/main/kotlin/com/hexated/Nimegami.kt index 7b2babd5..a2ed9aaf 100644 --- a/Nimegami/src/main/kotlin/com/hexated/Nimegami.kt +++ b/Nimegami/src/main/kotlin/com/hexated/Nimegami.kt @@ -23,7 +23,7 @@ class Nimegami : MainAPI() { companion object { fun getType(t: String): TvType { return when { - t.contains("Tv", true) -> TvType.AnimeMovie + t.contains("Tv", true) -> TvType.Anime t.contains("Movie", true) -> TvType.AnimeMovie t.contains("OVA", true) || t.contains("Special", true) -> TvType.OVA else -> TvType.Anime