Skip to content

Commit 2220c45

Browse files
Last Sync: 2026-02-01 03:40 (Mobile)
1 parent 24e0f7b commit 2220c45

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

AnimeSailProvider/src/main/kotlin/com/hexated/AnimeSailProvider.kt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import com.lagradost.cloudstream3.utils.Qualities
1212
import com.lagradost.cloudstream3.utils.loadExtractor
1313
import com.lagradost.cloudstream3.utils.newExtractorLink
1414
import com.lagradost.nicehttp.NiceResponse
15-
// import com.lagradost.cloudstream3.network.CloudflareInterceptor <--- INI DIHAPUS KARENA ERROR
1615
import kotlinx.coroutines.runBlocking
1716
import org.jsoup.Jsoup
1817
import org.jsoup.nodes.Element
@@ -49,14 +48,9 @@ class AnimeSailProvider : MainAPI() {
4948
private suspend fun request(url: String, ref: String? = null): NiceResponse {
5049
return app.get(
5150
url,
52-
headers = mapOf(
53-
// Header ini adalah kunci utama bypass Cloudflare sederhana
54-
"User-Agent" to "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
55-
"Accept" to "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"
56-
),
51+
headers = mapOf("Accept" to "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"),
5752
cookies = mapOf("_as_ipin_ct" to "ID"),
5853
referer = ref
59-
// interceptor = CloudflareInterceptor(mainUrl) <--- INI DIHAPUS
6054
)
6155
}
6256

@@ -209,7 +203,9 @@ class AnimeSailProvider : MainAPI() {
209203
}
210204
)
211205
}
212-
206+
// skip for now
207+
// iframe.startsWith("$mainUrl/utils/player/fichan/") -> ""
208+
// iframe.startsWith("$mainUrl/utils/player/blogger/") -> ""
213209
iframe.startsWith("https://aghanim.xyz/tools/redirect/") -> {
214210
val link = "https://rasa-cintaku-semakin-berantai.xyz/v/${
215211
iframe.substringAfter("id=").substringBefore("&token")
@@ -272,4 +268,5 @@ class AnimeSailProvider : MainAPI() {
272268
return Regex("(\\d{3,4})[pP]").find(str)?.groupValues?.getOrNull(1)?.toIntOrNull()
273269
?: Qualities.Unknown.value
274270
}
275-
}
271+
272+
}

0 commit comments

Comments
 (0)