From e2363288073f3c14470306451d5bf300720171f8 Mon Sep 17 00:00:00 2001 From: Hexated <37908684+hexated@users.noreply.github.com> Date: Wed, 14 Jun 2023 01:11:17 +0700 Subject: [PATCH] Update --- Minioppai/src/main/kotlin/com/hexated/Minioppai.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minioppai/src/main/kotlin/com/hexated/Minioppai.kt b/Minioppai/src/main/kotlin/com/hexated/Minioppai.kt index 5f00d16b..129a20b9 100644 --- a/Minioppai/src/main/kotlin/com/hexated/Minioppai.kt +++ b/Minioppai/src/main/kotlin/com/hexated/Minioppai.kt @@ -161,7 +161,7 @@ class Minioppai : MainAPI() { subtitleCallback: (SubtitleFile) -> Unit, callback: (ExtractorLink) -> Unit ) { - val script = getAndUnpack(app.get(url).text) + val script = getAndUnpack(app.get(url, referer="$mainUrl/").text) val sources = script.substringAfter("sources:[").substringBefore("]").replace("'", "\"") val subtitles = script.substringAfter("\"tracks\":[").substringBefore("]")