This commit is contained in:
Hexated 2023-06-14 01:11:17 +07:00 committed by GitHub
parent 8308d621f6
commit e236328807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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("]")