Skip to content

Commit 0bc67cf

Browse files
Last Sync: 2026-02-24 22:15 (Mobile)
1 parent 1d1d936 commit 0bc67cf

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

AnichinProvider/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version = 1
22

33
cloudstream {
4-
description = "Anichin — Anime Sub Indo"
4+
description = "Anichin — Donghua Sub Indo"
55
language = "id"
66
authors = listOf("Miku")
77

NekopoiProvider/src/main/kotlin/com/nekopoi/NekopoiProvider.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ class NekopoiProvider : MainAPI() {
239239

240240
private suspend fun bypassOuo(url: String?): String? {
241241
if (url == null) return null
242-
var currentUrl = url
242+
243+
var currentUrl: String = url
243244
var res = session.get(currentUrl)
244245

245246
run lit@{
@@ -249,11 +250,11 @@ class NekopoiProvider : MainAPI() {
249250
val document = res.document
250251
val form = document.selectFirst("form") ?: return@lit
251252

252-
var nextUrl = form.attr("action")
253-
if (nextUrl.isNullOrBlank()) nextUrl = currentUrl
253+
var nextUrl = form.attr("action") ?: ""
254+
if (nextUrl.isBlank()) nextUrl = currentUrl
254255

255256
val data = document.select("form input").associate {
256-
it.attr("name") to it.attr("value")
257+
(it.attr("name") ?: "") to (it.attr("value") ?: "")
257258
}.toMutableMap()
258259

259260
val captchaScript = document.selectFirst("script[src*=/recaptcha/api.js?render=]")
@@ -293,7 +294,7 @@ class NekopoiProvider : MainAPI() {
293294
?: scriptData.substringAfter("\"GET\", \"").substringBefore("\"").takeIf { it.isNotBlank() }
294295
}
295296

296-
private suspend fun bypassMirrored(url: String?): List<String?> {
297+
private suspend fun bypassMirrored(url: String?): List<String> {
297298
if (url.isNullOrBlank()) return emptyList()
298299

299300
val request = session.get(url)

0 commit comments

Comments
 (0)