diff --git a/Anizm/build.gradle.kts b/Anizm/build.gradle.kts
new file mode 100644
index 0000000..6c69805
--- /dev/null
+++ b/Anizm/build.gradle.kts
@@ -0,0 +1,27 @@
+// use an integer for version numbers
+version = 1
+
+
+cloudstream {
+ language = "tr"
+ // All of these properties are optional, you can safely remove them
+
+ // description = "Lorem Ipsum"
+ authors = listOf("Hexated")
+
+ /**
+ * Status int as the following:
+ * 0: Down
+ * 1: Ok
+ * 2: Slow
+ * 3: Beta only
+ * */
+ status = 1 // will be 3 if unspecified
+ tvTypes = listOf(
+ "AnimeMovie",
+ "Anime",
+ "OVA",
+ )
+
+ iconUrl = "https://www.google.com/s2/favicons?domain=anizm.net&sz=%size%"
+}
\ No newline at end of file
diff --git a/Anizm/src/main/AndroidManifest.xml b/Anizm/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..29aec9d
--- /dev/null
+++ b/Anizm/src/main/AndroidManifest.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/Anizm/src/main/kotlin/com/lagradost/Anizm.kt b/Anizm/src/main/kotlin/com/lagradost/Anizm.kt
new file mode 100644
index 0000000..eefabe2
--- /dev/null
+++ b/Anizm/src/main/kotlin/com/lagradost/Anizm.kt
@@ -0,0 +1,195 @@
+package com.lagradost
+
+import android.util.Log
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.lagradost.cloudstream3.*
+import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
+import com.lagradost.cloudstream3.mvvm.safeApiCall
+import com.lagradost.cloudstream3.utils.*
+import org.jsoup.Jsoup
+import org.jsoup.nodes.Element
+
+
+class Anizm : MainAPI() {
+ override var mainUrl = "https://anizm.net"
+ override var name = "Anizm"
+ override val hasMainPage = true
+ override var lang = "tr"
+ override val hasDownloadSupport = true
+
+ override val supportedTypes = setOf(
+ TvType.Anime,
+ TvType.AnimeMovie,
+ TvType.OVA
+ )
+
+ companion object {
+ private const val mainServer = "https://anizmplayer.com"
+ }
+
+ override val mainPage = mainPageOf(
+ "$mainUrl/anime-izle?sayfa=" to "Son Eklenen Animeler",
+ )
+
+ override suspend fun getMainPage(
+ page: Int,
+ request: MainPageRequest
+ ): HomePageResponse {
+ val document = app.get(request.data + page).document
+ val home = document.select("div.restrictedWidth div#episodesMiddle").mapNotNull {
+ it.toSearchResult()
+ }
+ return newHomePageResponse(request.name, home)
+ }
+
+ private fun getProperAnimeLink(uri: String): String {
+ return if (uri.contains("-bolum")) {
+ "$mainUrl/${uri.substringAfter("$mainUrl/").replace(Regex("-[0-9]+-bolum.*"), "")}"
+ } else {
+ uri
+ }
+ }
+
+ private fun Element.toSearchResult(): AnimeSearchResponse? {
+ val href = getProperAnimeLink(this.selectFirst("a")!!.attr("href"))
+ val title = this.selectFirst("div.title, h5.animeTitle a")?.text() ?: return null
+ val posterUrl = fixUrlNull(this.selectFirst("img")?.attr("src"))
+ val episode = this.selectFirst("div.truncateText")?.text()?.let {
+ Regex("([0-9]+).\\s?Bölüm").find(it)?.groupValues?.getOrNull(1)?.toIntOrNull()
+ }
+
+ return newAnimeSearchResponse(title, href, TvType.Anime) {
+ this.posterUrl = posterUrl
+ addSub(episode)
+ }
+ }
+
+ override suspend fun search(query: String): List {
+ val document = app.get(
+ "$mainUrl/fullViewSearch?search=$query&skip=0",
+ headers = mapOf("X-Requested-With" to "XMLHttpRequest")
+ ).document
+
+ return document.select("div.searchResultItem").mapNotNull {
+ it.toSearchResult()
+ }
+ }
+
+ override suspend fun load(url: String): LoadResponse {
+ val document = app.get(url).document
+
+ val title = document.selectFirst("h2.anizm_pageTitle a")!!.text().trim()
+ val type =
+ if (document.select("div.ui.grid div.four.wide").size == 1) TvType.Movie else TvType.Anime
+ val trailer = document.select("div.yt-hd-thumbnail-inner-container iframe").attr("src")
+ val episodes = document.select("div.ui.grid div.four.wide").map {
+ val name = it.select("div.episodeBlock").text()
+ val link = fixUrl(it.selectFirst("a")?.attr("href").toString())
+ Episode(link, name)
+ }
+ return newAnimeLoadResponse(title, url, type) {
+ posterUrl = fixUrlNull(document.selectFirst("div.infoPosterImg > img")?.attr("src"))
+ this.year = document.select("div.infoSta ul li:first-child").text().trim().toIntOrNull()
+ addEpisodes(DubStatus.Subbed, episodes)
+ plot = document.select("div.infoDesc").text().trim()
+ this.tags = document.select("span.dataValue span.ui.label").map { it.text() }
+ addTrailer(trailer)
+ }
+ }
+
+ private suspend fun invokeLokalSource(
+ url: String,
+ translator: String,
+ sourceCallback: (ExtractorLink) -> Unit
+ ) {
+ app.get(url, referer = "$mainUrl/").document.select("script").find { script ->
+ script.data().contains("eval(function(p,a,c,k,e,d)")
+ }?.let {
+ val key = getAndUnpack(it.data()).substringAfter("FirePlayer(\"").substringBefore("\",")
+ val referer = "$mainServer/video/$key"
+ val link = "$mainServer/player/index.php?data=$key&do=getVideo"
+ Log.i("hexated", link)
+ app.post(
+ link,
+ data = mapOf("hash" to key, "r" to "$mainUrl/"),
+ referer = referer,
+ headers = mapOf(
+ "Accept" to "*/*",
+ "Origin" to mainServer,
+ "Content-Type" to "application/x-www-form-urlencoded; charset=UTF-8",
+ "X-Requested-With" to "XMLHttpRequest"
+ )
+ ).parsedSafe